diff options
| author | Max Horn | 2002-07-10 16:49:45 +0000 | 
|---|---|---|
| committer | Max Horn | 2002-07-10 16:49:45 +0000 | 
| commit | d32e3ad11f8f5e73b9a72cdaa003d8b66211172c (patch) | |
| tree | 1e1c2c8dda75fe6a08e23acc620bf08c5dc2cdc3 /newgui.h | |
| parent | 5cc6e3f6a037453193aac1ee6a18771f962ad653 (diff) | |
| download | scummvm-rg350-d32e3ad11f8f5e73b9a72cdaa003d8b66211172c.tar.gz scummvm-rg350-d32e3ad11f8f5e73b9a72cdaa003d8b66211172c.tar.bz2 scummvm-rg350-d32e3ad11f8f5e73b9a72cdaa003d8b66211172c.zip | |
improved the alpha blending code, now works properly for nesting/redraw (changed meaning of WIDGET_CLEARBG a little bit for this)
svn-id: r4509
Diffstat (limited to 'newgui.h')
| -rw-r--r-- | newgui.h | 12 | 
1 files changed, 9 insertions, 3 deletions
| @@ -63,7 +63,9 @@ public:  protected:  	Scumm		*_s; +	bool		_use_alpha_blending;  	bool		_need_redraw; +	bool		_prepare_for_gui;  	DialogStack	_dialogStack;  	Dialog		*_pauseDialog; @@ -94,12 +96,16 @@ public:  	// Drawing  	byte *getBasePtr(int x, int y);  	void box(int x, int y, int width, int height); -    void line(int x, int y, int x2, int y2, byte color); -    void fillArea(int x, int y, int w, int h, byte color); -    void setAreaDirty(int x, int y, int w, int h); +	void line(int x, int y, int x2, int y2, byte color); +	void blendArea(int x, int y, int w, int h, byte color); +	void fillArea(int x, int y, int w, int h, byte color); +	void setAreaDirty(int x, int y, int w, int h);  	void drawChar(const char c, int x, int y);  	void drawString(const char *str, int x, int y, int w, byte color); +  	void drawBitmap(uint32 bitmap[8], int x, int y, byte color); +	void blitTo(byte buffer[320*200], int x, int y, int w, int h); +	void blitFrom(byte buffer[320*200], int x, int y, int w, int h);  	// Query a string from the resources  	const char *queryResString(int stringno); | 
