comparison src/video/directfb/SDL_DirectFB_video.c @ 1018:012af0b7e8e6

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
author Sam Lantinga <slouken@libsdl.org>
date Mon, 27 Dec 2004 20:03:53 +0000
parents 8762a202f121
children f87f87efd45a
comparison
equal deleted inserted replaced
1017:c2f2370ac1e5 1018:012af0b7e8e6
466 if (getenv("SDL_DIRECTFB_MGA_CRTC2") != NULL) 466 if (getenv("SDL_DIRECTFB_MGA_CRTC2") != NULL)
467 HIDDEN->enable_mga_crtc2 = 1; 467 HIDDEN->enable_mga_crtc2 = 1;
468 468
469 if (HIDDEN->enable_mga_crtc2) 469 if (HIDDEN->enable_mga_crtc2)
470 { 470 {
471 DFBDisplayLayerConfig dlc;
472 DFBDisplayLayerConfigFlags failed;
473
471 ret = dfb->GetDisplayLayer (dfb, 2, &HIDDEN->c2layer); 474 ret = dfb->GetDisplayLayer (dfb, 2, &HIDDEN->c2layer);
472 if (ret) 475 if (ret)
473 { 476 {
474 SetDirectFBerror ("dfb->GetDisplayLayer(CRTC2)", ret); 477 SetDirectFBerror ("dfb->GetDisplayLayer(CRTC2)", ret);
475 goto error; 478 goto error;
490 } 493 }
491 494
492 HIDDEN->c2layer->SetOpacity(HIDDEN->c2layer, 0x0); 495 HIDDEN->c2layer->SetOpacity(HIDDEN->c2layer, 0x0);
493 496
494 /* Init the surface here as it got a fixed size */ 497 /* Init the surface here as it got a fixed size */
495 DFBDisplayLayerConfig dlc;
496 DFBDisplayLayerConfigFlags failed;
497
498 dlc.flags = DLCONF_PIXELFORMAT | DLCONF_BUFFERMODE | DLCONF_OPTIONS; 498 dlc.flags = DLCONF_PIXELFORMAT | DLCONF_BUFFERMODE | DLCONF_OPTIONS;
499 dlc.buffermode = DLBM_BACKVIDEO; 499 dlc.buffermode = DLBM_BACKVIDEO;
500 dlc.options = DLOP_FLICKER_FILTERING; 500 dlc.options = DLOP_FLICKER_FILTERING;
501 dlc.pixelformat = DSPF_RGB32; 501 dlc.pixelformat = DSPF_RGB32;
502 502