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
This commit is contained in:
parent
bb57506d48
commit
f644bea112
4 changed files with 83 additions and 53 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue