diff options
author | Michele Calgaro <[email protected]> | 2023-11-24 10:46:34 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-11-24 10:46:34 +0900 |
commit | 357bdcb4722d4fbfe02cdd8685d76fd0be17259b (patch) | |
tree | 7eb5c30ca53d17d86732ac36e7e044630a0f1410 /src/gvcore/xpm.cpp | |
parent | 81b75405598b6827205a7e2a9d27d6a42b6a3e8a (diff) | |
download | gwenview-357bdcb4722d4fbfe02cdd8685d76fd0be17259b.tar.gz gwenview-357bdcb4722d4fbfe02cdd8685d76fd0be17259b.zip |
Replaced various '#define' with actual strings - part 3
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/gvcore/xpm.cpp')
-rw-r--r-- | src/gvcore/xpm.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gvcore/xpm.cpp b/src/gvcore/xpm.cpp index edb79e3..c398540 100644 --- a/src/gvcore/xpm.cpp +++ b/src/gvcore/xpm.cpp @@ -221,10 +221,10 @@ static void read_xpm_image_or_array( TQImageIO * iio, const char * const * sourc int transparentColor = currentColor; if ( image.depth() == 8 ) { image.setColor( transparentColor, - TQRGB_MASK & tqRgb(198,198,198) ); + TQT_RGB_MASK & tqRgb(198,198,198) ); colorMap.insert( index, transparentColor ); } else { - TQRgb rgb = TQRGB_MASK & tqRgb(198,198,198); + TQRgb rgb = TQT_RGB_MASK & tqRgb(198,198,198); colorMap.insert( index, rgb ); } } else { @@ -388,7 +388,7 @@ static void write_xpm_image( TQImageIO * iio ) TQMap<TQRgb, int>::Iterator c = colorMap.begin(); while ( c != colorMap.end() ) { TQRgb color = c.key(); - if ( image.hasAlphaBuffer() && color == (color & TQRGB_MASK) ) + if ( image.hasAlphaBuffer() && color == (color & TQT_RGB_MASK) ) line.sprintf( "\"%s c None\"", xpm_color_name(cpp, *c) ); else |