telengard
Certified Guru
I am attempting to use this version of SDL and am very close to getting it working w/ gp2xmess. The one issue I have left is getting the displayed image scaled. I am definitely doing something wrong and if someone could give me some idea where I'm going wrong that would be great.
I call SDL_SetVideoMode w/ 320x240x16 + HW + DOUBLEBUF
I then create an offscreen surface (HW) that is larger than 320x240 (in this case 560x192)
I call SDL_GP2X_Display w/ {0,0,560,192}
I then call SDL_BlitSurface with the offscreen surface as the src and the video surface returned from SDL_SetVideoMode as the destination. I use the full size of each for rects
I then call SDL_Flip
What I get is a "viewport" into the upper left of the screen. Sorta like when using a virtual workspace on a UNIX window manager. So I only see a portion of the 560x192 and it's zoomed. I have also tried all kinds of different combinations of sizes to SDL_GP2X_Display etc and all of them give me the same results.
Any ideas?
~telengard
I call SDL_SetVideoMode w/ 320x240x16 + HW + DOUBLEBUF
I then create an offscreen surface (HW) that is larger than 320x240 (in this case 560x192)
I call SDL_GP2X_Display w/ {0,0,560,192}
I then call SDL_BlitSurface with the offscreen surface as the src and the video surface returned from SDL_SetVideoMode as the destination. I use the full size of each for rects
I then call SDL_Flip
What I get is a "viewport" into the upper left of the screen. Sorta like when using a virtual workspace on a UNIX window manager. So I only see a portion of the 560x192 and it's zoomed. I have also tried all kinds of different combinations of sizes to SDL_GP2X_Display etc and all of them give me the same results.
Any ideas?
~telengard