Mercurial > sdl-ios-xcode
diff src/video/directfb/SDL_DirectFB_window.c @ 3011:8f4ed5ec2b06
I ran a global "make indent" it modified the following files.
author | Bob Pendleton <bob@pendleton.com> |
---|---|
date | Fri, 09 Jan 2009 20:43:30 +0000 |
parents | 99210400e8b9 |
children | 8cc00819c8d6 |
line wrap: on
line diff
--- a/src/video/directfb/SDL_DirectFB_window.c Fri Jan 09 20:41:31 2009 +0000 +++ b/src/video/directfb/SDL_DirectFB_window.c Fri Jan 09 20:43:30 2009 +0000 @@ -43,11 +43,11 @@ SDL_DFB_CALLOC(window->driverdata, 1, sizeof(DFB_WindowData)); windata = (DFB_WindowData *) window->driverdata; - SDL_DFB_CHECKERR(devdata->dfb-> - SetCooperativeLevel(devdata->dfb, DFSCL_NORMAL)); - SDL_DFB_CHECKERR(dispdata->layer-> - SetCooperativeLevel(dispdata->layer, - DLSCL_ADMINISTRATIVE)); + SDL_DFB_CHECKERR(devdata-> + dfb->SetCooperativeLevel(devdata->dfb, DFSCL_NORMAL)); + SDL_DFB_CHECKERR(dispdata-> + layer->SetCooperativeLevel(dispdata->layer, + DLSCL_ADMINISTRATIVE)); /* Fill the window description. */ if (window->x == SDL_WINDOWPOS_CENTERED) { @@ -100,8 +100,9 @@ /* DSCAPS_VIDEOONLY has negative impact on performance */ /* Create the window. */ - SDL_DFB_CHECKERR(dispdata->layer-> - CreateWindow(dispdata->layer, &desc, &windata->window)); + SDL_DFB_CHECKERR(dispdata-> + layer->CreateWindow(dispdata->layer, &desc, + &windata->window)); windata->window->GetOptions(windata->window, &wopts); #if (DIRECTFB_MAJOR_VERSION == 1) && (DIRECTFB_MINOR_VERSION >= 0) @@ -119,14 +120,14 @@ windata->window->SetOptions(windata->window, wopts); /* Get the window's surface. */ - SDL_DFB_CHECKERR(windata->window-> - GetSurface(windata->window, &windata->surface)); + SDL_DFB_CHECKERR(windata-> + window->GetSurface(windata->window, &windata->surface)); windata->window->SetOpacity(windata->window, 0xFF); - SDL_DFB_CHECKERR(windata->window-> - CreateEventBuffer(windata->window, - &(windata->eventbuffer))); - SDL_DFB_CHECKERR(windata->window-> - EnableEvents(windata->window, DWET_ALL)); + SDL_DFB_CHECKERR(windata->window->CreateEventBuffer(windata->window, + &(windata-> + eventbuffer))); + SDL_DFB_CHECKERR(windata-> + window->EnableEvents(windata->window, DWET_ALL)); if (window->flags & SDL_WINDOW_FULLSCREEN) windata->window->SetStackingClass(windata->window, DWSC_UPPER); @@ -202,19 +203,21 @@ int ch; /* Make sure all events are disabled for this operation ! */ - SDL_DFB_CHECKERR(windata->window-> - DisableEvents(windata->window, DWET_ALL)); + SDL_DFB_CHECKERR(windata-> + window->DisableEvents(windata->window, DWET_ALL)); SDL_DFB_CHECKERR(windata->window->GetSize(windata->window, &cw, &ch)); if (cw != window->w || ch != window->h) - SDL_DFB_CHECKERR(windata->window-> - Resize(windata->window, window->w, window->h)); - SDL_DFB_CHECKERR(windata->window-> - EnableEvents(windata->window, DWET_ALL)); + SDL_DFB_CHECKERR(windata-> + window->Resize(windata->window, window->w, + window->h)); + SDL_DFB_CHECKERR(windata-> + window->EnableEvents(windata->window, DWET_ALL)); #else - SDL_DFB_CHECKERR(windata->window-> - Resize(windata->window, window->w, window->h)); + SDL_DFB_CHECKERR(windata-> + window->Resize(windata->window, window->w, + window->h)); #endif SDL_DFB_CHECKERR(windata->window->GetSize(windata->window, &window->w, &window->h)); /* if a window manager should have decided otherwise */