[Scummvm-cvs-logs] CVS: scummvm/backends/sdl sdl.cpp,1.4,1.5
Max Horn
fingolfin at users.sourceforge.net
Thu Sep 19 10:04:03 CEST 2002
Update of /cvsroot/scummvm/scummvm/backends/sdl
In directory usw-pr-cvs1:/tmp/cvs-serv9164/backends/sdl
Modified Files:
sdl.cpp
Log Message:
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
Index: sdl.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/sdl/sdl.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- sdl.cpp 19 Sep 2002 16:06:47 -0000 1.4
+++ sdl.cpp 19 Sep 2002 17:03:23 -0000 1.5
@@ -22,12 +22,8 @@
#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:
More information about the Scummvm-git-logs
mailing list