aboutsummaryrefslogtreecommitdiff
path: root/backends/sdl/sdl.cpp
diff options
context:
space:
mode:
authorMax Horn2002-09-19 17:03:24 +0000
committerMax Horn2002-09-19 17:03:24 +0000
commitf644bea112becce051fb7faa85d2c1bb47c8eee5 (patch)
treeb4c2065ae96ef3bbc1a046f3cc536541af78f5aa /backends/sdl/sdl.cpp
parentbb57506d48e783027dbf09ab44c88b40ed7d2fa4 (diff)
downloadscummvm-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/sdl.cpp')
-rw-r--r--backends/sdl/sdl.cpp6
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