Update of /cvsroot/okfw/3rdparty/libminigui/src/newgal
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv21573/newgal
Modified Files:
pixels.c video.c
Log Message:
Video stuff.
Index: video.c
===================================================================
RCS file: /cvsroot/okfw/3rdparty/libminigui/src/newgal/video.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- video.c 27 May 2006 16:47:27 -0000 1.3
+++ video.c 23 Feb 2008 16:30:20 -0000 1.4
@@ -69,7 +69,7 @@
#endif
NULL
};
-GAL_VideoDevice *current_video = NULL;
+GAL_VideoDevice *current_video; // Move to .bss (auto zeroed) = NULL;
/* Various local functions */
int GAL_VideoInit(const char *driver_name, Uint32 flags);
@@ -149,6 +149,11 @@
return(-1);
}
+ fprintf(stderr, "GAL_VideoSurface: %d(%d)x%d@%p \n",
+ GAL_VideoSurface->w,
+ GAL_VideoSurface->pitch,
+ GAL_VideoSurface->h,
+ GAL_VideoSurface->pixels);
video->info.vfmt = GAL_VideoSurface->format;
/* We're ready to go! */
@@ -508,9 +513,9 @@
if ( mode->format->palette ) {
GAL_PixelFormat *vf = mode->format;
GAL_DitherColors(vf->palette->colors, vf->BitsPerPixel);
- GAL_UpdateDitherLookup(vf);
+ GAL_UpdateDitherLookup(vf);
video->SetColors(this, 0, vf->palette->ncolors,
- vf->palette->colors);
+ vf->palette->colors);
}
/* Clear the surface to black */
@@ -816,9 +821,9 @@
}
fprintf(stderr, "Setting logical palette: %d %d\n", pal->ncolors, pal->first_opaque);
- if(dirty)
+ if(dirty) {
GAL_UpdateDitherLookup(screen->format);
-
+ }
#if 0
vidpal = GAL_VideoSurface->format->palette;
if ( (screen == GAL_ShadowSurface) && vidpal ) {
Index: pixels.c
===================================================================
RCS file: /cvsroot/okfw/3rdparty/libminigui/src/newgal/pixels.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- pixels.c 27 May 2006 16:47:27 -0000 1.4
+++ pixels.c 23 Feb 2008 16:30:20 -0000 1.5
@@ -452,8 +452,8 @@
}
}
-#if 0
fprintf(stderr, "Calculating Dither Lookup end\n");
+#if 0
fprintf(stderr, "Calculating Dither Lookup for palette %d\n",
fmt->palette->ncolors);
for(i = 0; i < fmt->palette->ncolors; ++i) {
|