comparison src/video/directfb/SDL_DirectFB_modes.c @ 2841:483f85e35a1a

Date: Sat, 06 Dec 2008 14:54:10 +0100 From: Couriersud Subject: SDL: DirectFB mouse patch the attached patch (again) properly registers the mouse in the DirectFB driver.
author Sam Lantinga <slouken@libsdl.org>
date Sat, 06 Dec 2008 17:46:55 +0000
parents e759ad5e6f43
children 99210400e8b9
comparison
equal deleted inserted replaced
2840:53ca0d758b0a 2841:483f85e35a1a
346 display.desktop_mode = mode; 346 display.desktop_mode = mode;
347 display.current_mode = mode; 347 display.current_mode = mode;
348 display.driverdata = dispdata; 348 display.driverdata = dispdata;
349 349
350 #if (DIRECTFB_MAJOR_VERSION == 1) && (DIRECTFB_MINOR_VERSION >= 2) 350 #if (DIRECTFB_MAJOR_VERSION == 1) && (DIRECTFB_MINOR_VERSION >= 2)
351 dlc.flags = DLCONF_WIDTH | DLCONF_HEIGHT | DLCONF_PIXELFORMAT | DLCONF_OPTIONS; 351 dlc.flags =
352 ret = layer->SetConfiguration(layer, &dlc); 352 DLCONF_WIDTH | DLCONF_HEIGHT | DLCONF_PIXELFORMAT |
353 #endif 353 DLCONF_OPTIONS;
354 ret = layer->SetConfiguration(layer, &dlc);
355 #endif
354 356
355 SDL_DFB_CHECKERR(layer->SetCooperativeLevel(layer, DLSCL_SHARED)); 357 SDL_DFB_CHECKERR(layer->SetCooperativeLevel(layer, DLSCL_SHARED));
356 358
357 SDL_AddVideoDisplay(&display); 359 SDL_AddVideoDisplay(&display);
358 } 360 }
465 && (config.pixelformat != rconfig.pixelformat))) { 467 && (config.pixelformat != rconfig.pixelformat))) {
466 SDL_DFB_ERR("Error setting mode %dx%d-%x\n", mode->w, mode->h, 468 SDL_DFB_ERR("Error setting mode %dx%d-%x\n", mode->w, mode->h,
467 mode->format); 469 mode->format);
468 return -1; 470 return -1;
469 } 471 }
470 472
471 data->pixelformat = rconfig.pixelformat; 473 data->pixelformat = rconfig.pixelformat;
472 data->cw = config.width; 474 data->cw = config.width;
473 data->ch = config.height; 475 data->ch = config.height;
474 SDL_CurrentDisplay.current_mode = *mode; 476 SDL_CurrentDisplay.current_mode = *mode;
475 477