From f644bea112becce051fb7faa85d2c1bb47c8eee5 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 19 Sep 2002 17:03:24 +0000 Subject: improved the text display in a newgui a bit: make the font proportiona; implemented text alignment (left/right/center); alpha blending now not anymore at 50% but at 66%; moved some #defines to util.h svn-id: r4972 --- backends/sdl/sdl.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'backends') diff --git a/backends/sdl/sdl.cpp b/backends/sdl/sdl.cpp index ef8633bea4..59b2302ed0 100644 --- a/backends/sdl/sdl.cpp +++ b/backends/sdl/sdl.cpp @@ -22,13 +22,9 @@ #include "sdl-common.h" #include "common/scaler.h" +#include "common/util.h" #include "common/engine.h" // Only #included for error() and warning() -// FIXME - this macro assumes that we use 565 mode. But what if we are in 555 mode? -#define RGB_TO_16(r,g,b) ((((r>>3)&0x1F) << 11) | (((g>>2)&0x3F) << 5) | ((b>>3)&0x1F)) -//#define RGB_TO_16(r,g,b) ((((r>>3)&0x1F) << 10) | (((g>>3)&0x1F) << 5) | ((b>>3)&0x1F)) - - class OSystem_SDL_Normal : public OSystem_SDL_Common { public: // Set colors of the palette -- cgit v1.2.3