Mercurial > sdl-ios-xcode
diff src/video/photon/SDL_photon.c @ 3186:51750b7a966f
indent
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 10 Jun 2009 13:34:20 +0000 |
parents | 44d5474c2c8a |
children | 64e4442676a6 |
line wrap: on
line diff
--- a/src/video/photon/SDL_photon.c Wed Jun 10 08:09:04 2009 +0000 +++ b/src/video/photon/SDL_photon.c Wed Jun 10 13:34:20 2009 +0000 @@ -385,42 +385,42 @@ status = PgGetGraphicsHWCaps(&hwcaps); if (status != 0) { PhRect_t extent; - PdOffscreenContext_t* curctx; + PdOffscreenContext_t *curctx; /* If error happens, this also could mean, that photon is working */ /* under custom (not listed by photon) video mode */ - status=PhWindowQueryVisible(Ph_QUERY_GRAPHICS, 0, 0, &extent); + status = PhWindowQueryVisible(Ph_QUERY_GRAPHICS, 0, 0, &extent); if (status != 0) { SDL_SetError("Photon: Can't get graphics driver region"); SDL_free(didata->cursor); SDL_free(didata); return -1; } - modeinfo.width=extent.lr.x+1; - modeinfo.height=extent.lr.y+1; + modeinfo.width = extent.lr.x + 1; + modeinfo.height = extent.lr.y + 1; /* Hardcode 60Hz, as the base refresh rate frequency */ - hwcaps.current_rrate=60; + hwcaps.current_rrate = 60; /* Clear current video driver name, no way to get it somehow */ - hwcaps.chip_name[0]=0x00; + hwcaps.chip_name[0] = 0x00; /* Create offscreen context from video memory, which is currently */ /* displayed on the screen */ - curctx=PdCreateOffscreenContext(0, 0, 0, Pg_OSC_MAIN_DISPLAY); - if (curctx==NULL) - { + curctx = PdCreateOffscreenContext(0, 0, 0, Pg_OSC_MAIN_DISPLAY); + if (curctx == NULL) { SDL_SetError("Photon: Can't get display area capabilities"); SDL_free(didata->cursor); SDL_free(didata); return -1; } /* Retrieve current bpp */ - modeinfo.type=curctx->format; + modeinfo.type = curctx->format; PhDCRelease(curctx); } else { /* Get current video mode details */ status = PgGetVideoModeInfo(hwcaps.current_video_mode, &modeinfo); if (status != 0) { - SDL_SetError("Photon: Can't get current video mode information"); + SDL_SetError + ("Photon: Can't get current video mode information"); SDL_free(didata->cursor); SDL_free(didata); return -1;