aboutsummaryrefslogtreecommitdiff
path: root/backends/wince
diff options
context:
space:
mode:
authorNicolas Bacca2003-01-21 22:36:53 +0000
committerNicolas Bacca2003-01-21 22:36:53 +0000
commitb2f231efbd2d955ef7187bd0d9812f3a042327c7 (patch)
tree3abf4473334dc2817f04a78650206a97d3be56e3 /backends/wince
parent2a02a2554a76ca4792856a3925616e7e13b0d4e9 (diff)
downloadscummvm-rg350-b2f231efbd2d955ef7187bd0d9812f3a042327c7.tar.gz
scummvm-rg350-b2f231efbd2d955ef7187bd0d9812f3a042327c7.tar.bz2
scummvm-rg350-b2f231efbd2d955ef7187bd0d9812f3a042327c7.zip
Fix dumb overlay overflow
svn-id: r6533
Diffstat (limited to 'backends/wince')
-rw-r--r--backends/wince/screen.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/backends/wince/screen.cpp b/backends/wince/screen.cpp
index 8e0aa25e84..370259dfc4 100644
--- a/backends/wince/screen.cpp
+++ b/backends/wince/screen.cpp
@@ -156,7 +156,7 @@ void hicolor555_Set_565(INT16*, int, int, int, int, int);
void hicolor565_Blt(UBYTE*);
void hicolor565_Blt_part(UBYTE*, int, int, int, int, UBYTE*, int);
-void hicolor565_Get_565(INT16*, int, int, int, int, int);
+//void hicolor565_Get_565(INT16*, int, int, int, int, int);
void hicolor565_Set_565(INT16*, int, int, int, int, int);
void noGAPI_Cls();
@@ -164,7 +164,7 @@ void noGAPI_Blt(UBYTE*);
void noGAPI_Blt_part(UBYTE*, int, int, int, int, UBYTE*, int);
void noGAPI_Set_565(INT16*, int, int, int, int, int);
-void NULL_Get_565(INT16*, int, int, int, int, int);
+//void NULL_Get_565(INT16*, int, int, int, int, int);
void NULL_Set_565(INT16*, int, int, int, int, int);
void palette_update();
@@ -2327,8 +2327,8 @@ void Get_565(UBYTE *src, INT16 *buffer, int pitch, int x, int y, int width, int
// Dumb conversion to 565
- for (i=0; i<240; i++) {
- for (j=0; j<320; j++) {
+ for (i=0; i<height; i++) {
+ for (j=0; j<width; j++) {
*buffer++ = COLORCONV565(palRed[*src], palGreen[*src], palBlue[*src]);
src++;
}