diff options
author | Pierre Ossman <ossman@cendio.se> | 2023-02-18 15:58:51 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2023-02-18 15:58:51 +0100 |
commit | 4c9b0ba913e77d295e8047181fc7fe0d029a27a7 (patch) | |
tree | 12411cb5de2e5e5de0a87ebd658104d2e980d803 /common/rfb | |
parent | f55abd7b0074bc6db9774ed563e02b11e634aa7d (diff) | |
download | tigervnc-4c9b0ba913e77d295e8047181fc7fe0d029a27a7.tar.gz tigervnc-4c9b0ba913e77d295e8047181fc7fe0d029a27a7.zip |
Merge "Pixel" type in to PixelFormat header
It's a type specific to that class, so let's keep them close for
clarity.
Diffstat (limited to 'common/rfb')
-rw-r--r-- | common/rfb/CMsgHandler.h | 1 | ||||
-rw-r--r-- | common/rfb/Pixel.h | 26 | ||||
-rw-r--r-- | common/rfb/PixelBuffer.h | 1 | ||||
-rw-r--r-- | common/rfb/PixelFormat.h | 4 |
4 files changed, 3 insertions, 29 deletions
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 <stdint.h> -#include <rfb/Pixel.h> #include <rfb/ServerParams.h> #include <rfb/Rect.h> #include <rfb/ScreenSet.h> 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 <stdint.h> - -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 <rfb/PixelFormat.h> #include <rfb/Rect.h> -#include <rfb/Pixel.h> 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 <rfb/Pixel.h> +#include <stdint.h> 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, |