Hi!
As I tried quake yesterday on my Toshiba E800 PPC I had the (known) white screen problem.
After hunting for the problem in the sources I finally found a way to avoid it.
The problem is the way the GAPI-screenbuffer is used in the VID_Update function.
Related to the specs there should be a GXBeginDraw and a GXEndDraw around the use of the buffer. It seems that the global way used, does not work for some pocket pc. So as I put it in the VID_Update function, as in the code below, it worked for my PocketPC. (And I tell you, E800 has nice framerate
So feel free to try...
Soenke
(free member of Absynth Interactive)
As I tried quake yesterday on my Toshiba E800 PPC I had the (known) white screen problem.
After hunting for the problem in the sources I finally found a way to avoid it.
The problem is the way the GAPI-screenbuffer is used in the VID_Update function.
Related to the specs there should be a GXBeginDraw and a GXEndDraw around the use of the buffer. It seems that the global way used, does not work for some pocket pc. So as I put it in the VID_Update function, as in the code below, it worked for my PocketPC. (And I tell you, E800 has nice framerate
So feel free to try...
Soenke
(free member of Absynth Interactive)
- Code:
void VID_Update (vrect_t *rects)
{
....
if (!VID_GetScreenBuf(0)) return;
// White Screen Fix by Soenke Dirksen ---Start 1
pScreenBuf=(unsigned short *)(*GXBeginDraw_)();
// White Screen Fix by Soenke Dirksen ---End 1
cdst=pDrawStart;
csrc=vid.buffer;
while (csrc<colEnd) {
//Calculate the ending row pixel
rowEnd2=csrc+rowEnd;
while (csrc<rowEnd2) {
//The next line is what actually sets the color value of the display pixel
*cdst=(short)vid_curpal[*csrc];
//Increment our source and display buffer pointers one pixel to the right
cdst+=xPitch2;
csrc++;
}
//Move down to the next row and all the way to the left
cdst+=nextRow2;
csrc+=nextSrcRow2;
}
// White Screen Fix by Soenke Dirksen ---Start 2
if (GXEndDraw_) (*GXEndDraw_)();
// White Screen Fix by Soenke Dirksen ---End 2
...