Date: Fri, 24 Dec 2004 23:32:06 -0500
From: Mike Frysinger Subject: [SDL] minor fix for gcc-2.x building in src/video/directfb/SDL_DirectFB_video.c, some variables are not declared at the beginning of scope ... newer gcc's will accept this, but gcc-2.x does not find attached a simple patch by Matt Taylor to resolve this http://bugs.gentoo.org/show_bug.cgi?id=75392 --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401019
This commit is contained in:
parent
de09729488
commit
caf8e783f3
1 changed files with 3 additions and 3 deletions
|
@ -468,6 +468,9 @@ int DirectFB_VideoInit(_THIS, SDL_PixelFormat *vformat)
|
||||||
|
|
||||||
if (HIDDEN->enable_mga_crtc2)
|
if (HIDDEN->enable_mga_crtc2)
|
||||||
{
|
{
|
||||||
|
DFBDisplayLayerConfig dlc;
|
||||||
|
DFBDisplayLayerConfigFlags failed;
|
||||||
|
|
||||||
ret = dfb->GetDisplayLayer (dfb, 2, &HIDDEN->c2layer);
|
ret = dfb->GetDisplayLayer (dfb, 2, &HIDDEN->c2layer);
|
||||||
if (ret)
|
if (ret)
|
||||||
{
|
{
|
||||||
|
@ -492,9 +495,6 @@ int DirectFB_VideoInit(_THIS, SDL_PixelFormat *vformat)
|
||||||
HIDDEN->c2layer->SetOpacity(HIDDEN->c2layer, 0x0);
|
HIDDEN->c2layer->SetOpacity(HIDDEN->c2layer, 0x0);
|
||||||
|
|
||||||
/* Init the surface here as it got a fixed size */
|
/* Init the surface here as it got a fixed size */
|
||||||
DFBDisplayLayerConfig dlc;
|
|
||||||
DFBDisplayLayerConfigFlags failed;
|
|
||||||
|
|
||||||
dlc.flags = DLCONF_PIXELFORMAT | DLCONF_BUFFERMODE | DLCONF_OPTIONS;
|
dlc.flags = DLCONF_PIXELFORMAT | DLCONF_BUFFERMODE | DLCONF_OPTIONS;
|
||||||
dlc.buffermode = DLBM_BACKVIDEO;
|
dlc.buffermode = DLBM_BACKVIDEO;
|
||||||
dlc.options = DLOP_FLICKER_FILTERING;
|
dlc.options = DLOP_FLICKER_FILTERING;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue