From 4c9b0ba913e77d295e8047181fc7fe0d029a27a7 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Sat, 18 Feb 2023 15:58:51 +0100 Subject: [PATCH] Merge "Pixel" type in to PixelFormat header It's a type specific to that class, so let's keep them close for clarity. --- common/rfb/CMsgHandler.h | 1 - common/rfb/Pixel.h | 26 -------------------------- common/rfb/PixelBuffer.h | 1 - common/rfb/PixelFormat.h | 4 +++- vncviewer/DesktopWindow.h | 1 - 5 files changed, 3 insertions(+), 30 deletions(-) delete mode 100644 common/rfb/Pixel.h diff --git a/common/rfb/CMsgHandler.h b/common/rfb/CMsgHandler.h index eb16bc9f..c427749f 100644 --- a/common/rfb/CMsgHandler.h +++ b/common/rfb/CMsgHandler.h @@ -26,7 +26,6 @@ #include -#include #include #include #include diff --git a/common/rfb/Pixel.h b/common/rfb/Pixel.h deleted file mode 100644 index ce1d7b15..00000000 --- a/common/rfb/Pixel.h +++ /dev/null @@ -1,26 +0,0 @@ -/* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. - * - * This is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This software is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this software; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, - * USA. - */ -#ifndef __RFB_PIXEL_H__ -#define __RFB_PIXEL_H__ - -#include - -namespace rfb { - typedef uint32_t Pixel; // must be big enough to hold any pixel value -} -#endif diff --git a/common/rfb/PixelBuffer.h b/common/rfb/PixelBuffer.h index 528f55c6..33a9c7ae 100644 --- a/common/rfb/PixelBuffer.h +++ b/common/rfb/PixelBuffer.h @@ -27,7 +27,6 @@ #include #include -#include namespace rfb { diff --git a/common/rfb/PixelFormat.h b/common/rfb/PixelFormat.h index ce9b3927..f0a16767 100644 --- a/common/rfb/PixelFormat.h +++ b/common/rfb/PixelFormat.h @@ -34,12 +34,14 @@ #ifndef __RFB_PIXELFORMAT_H__ #define __RFB_PIXELFORMAT_H__ -#include +#include namespace rdr { class InStream; class OutStream; } namespace rfb { + typedef uint32_t Pixel; // must be big enough to hold any pixel value + class PixelFormat { public: PixelFormat(int b, int d, bool e, bool t, diff --git a/vncviewer/DesktopWindow.h b/vncviewer/DesktopWindow.h index a36d2bdc..fd622c6d 100644 --- a/vncviewer/DesktopWindow.h +++ b/vncviewer/DesktopWindow.h @@ -25,7 +25,6 @@ #include #include -#include #include -- 2.39.5