diff options
author | Max Horn | 2002-09-19 17:03:24 +0000 |
---|---|---|
committer | Max Horn | 2002-09-19 17:03:24 +0000 |
commit | f644bea112becce051fb7faa85d2c1bb47c8eee5 (patch) | |
tree | b4c2065ae96ef3bbc1a046f3cc536541af78f5aa /backends/sdl | |
parent | bb57506d48e783027dbf09ab44c88b40ed7d2fa4 (diff) | |
download | scummvm-rg350-f644bea112becce051fb7faa85d2c1bb47c8eee5.tar.gz scummvm-rg350-f644bea112becce051fb7faa85d2c1bb47c8eee5.tar.bz2 scummvm-rg350-f644bea112becce051fb7faa85d2c1bb47c8eee5.zip |
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
Diffstat (limited to 'backends/sdl')
-rw-r--r-- | backends/sdl/sdl.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
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 |