Author: tom
Date: Thu Feb  5 04:33:52 2009
New Revision: 4043

URL: http://svn.slimdevices.com?rev=4043&root=Jive&view=rev
Log:
Bug: N/A
Description:
Reverting part of r3937 changes - bitdepth can't be 0 (broke testkeypad applet)

Modified:
    7.4/trunk/squeezeplay/src/squeezeplay/src/ui/jive_surface.c

Modified: 7.4/trunk/squeezeplay/src/squeezeplay/src/ui/jive_surface.c
URL: 
http://svn.slimdevices.com/7.4/trunk/squeezeplay/src/squeezeplay/src/ui/jive_surface.c?rev=4043&root=Jive&r1=4042&r2=4043&view=diff
==============================================================================
--- 7.4/trunk/squeezeplay/src/squeezeplay/src/ui/jive_surface.c (original)
+++ 7.4/trunk/squeezeplay/src/squeezeplay/src/ui/jive_surface.c Thu Feb  5 
04:33:52 2009
@@ -8,6 +8,9 @@
 
 #include "common.h"
 #include "jive.h"
+
+Uint16 default_bpp;
+
 
 
 JiveSurface *jive_surface_set_video_mode(Uint16 w, Uint16 h, Uint16 bpp, bool 
fullscreen) {
@@ -50,6 +53,8 @@
                DEBUG_TRACE("Video mode: %d bits/pixel %d bytes/pixel [R<<%d 
G<<%d B<<%d]", sdl->format->BitsPerPixel, sdl->format->BytesPerPixel, 
sdl->format->Rshift, sdl->format->Gshift, sdl->format->Bshift)
        }
 
+       default_bpp = bpp;
+
        srf = calloc(sizeof(JiveSurface), 1);
        srf->refcount = 1;
        srf->sdl = sdl;
@@ -61,7 +66,7 @@
        JiveSurface *srf;
        SDL_Surface *sdl;
 
-       sdl = SDL_CreateRGBSurface(SDL_SWSURFACE, w, h, 0, 0, 0, 0, 0);
+       sdl = SDL_CreateRGBSurface(SDL_SWSURFACE, w, h, default_bpp, 0, 0, 0, 
0);
 
        /* Opaque surface */
        SDL_SetAlpha(sdl, SDL_SRCALPHA, SDL_ALPHA_OPAQUE);

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins

Reply via email to