Home | History | Annotate | Download | only in photon

Lines Matching refs:screen

35 int ph_SetupImage(_THIS, SDL_Surface *screen)
41 bpp=screen->format->BitsPerPixel;
86 if ((SDL_Image = PhCreateImage(NULL, screen->w, screen->h, type, palette, _Pg_MAX_PALETTE, 1)) == NULL)
96 if ((SDL_Image = PhCreateImage(NULL, screen->w, screen->h, type, NULL, 0, 1)) == NULL)
103 screen->pixels = SDL_Image->image;
104 screen->pitch = SDL_Image->bpl;
111 int ph_SetupOCImage(_THIS, SDL_Surface *screen)
116 OCImage.flags = screen->flags;
118 bpp=screen->format->BitsPerPixel;
151 OCImage.offscreen_context = PdCreateOffscreenContext(0, screen->w, screen->h, Pg_OSC_MEM_PAGE_ALIGN);
159 screen->pitch = OCImage.offscreen_context->pitch;
176 screen->pixels = OCImage.CurrentFrameData;
183 int ph_SetupFullScreenImage(_THIS, SDL_Surface* screen)
185 OCImage.flags = screen->flags;
188 if (!ph_EnterFullScreen(this, screen, PH_ENTER_DIRECTMODE))
194 if ((screen->format->BitsPerPixel==8) && (desktopbpp!=8))
207 if ((screen->flags & SDL_DOUBLEBUF) == SDL_DOUBLEBUF)
221 ph_DestroyImage(this, screen);
225 if ((screen->flags & SDL_DOUBLEBUF) == SDL_DOUBLEBUF)
231 ph_DestroyImage(this, screen);
240 if ((screen->flags & SDL_DOUBLEBUF) == SDL_DOUBLEBUF)
244 screen->pitch = OCImage.offscreen_context->pitch;
245 screen->pixels = OCImage.FrameData0;
254 SDL_memset(screen->pixels+screen->pitch*i, 0x00, screen->pitch);
258 SDL_memset(screen->pixels+screen->pitch*i, 0x00, screen->pitch);
260 screen->pixels+=screen->pitch*40;
268 screen->pitch = OCImage.offscreen_context->pitch;
269 screen->pixels = OCImage.FrameData0;
278 SDL_memset(screen->pixels+screen->pitch*i, 0x00, screen->pitch);
282 SDL_memset(screen->pixels+screen->pitch*i, 0x00, screen->pitch);
284 screen->pixels+=screen->pitch*40;
299 int ph_SetupOpenGLImage(_THIS, SDL_Surface* screen)
302 screen->pixels=NULL;
303 screen->pitch=NULL;
306 if ((screen->flags & SDL_FULLSCREEN) == SDL_FULLSCREEN)
308 if (!ph_EnterFullScreen(this, screen, PH_IGNORE_DIRECTMODE))
310 screen->flags &= ~SDL_FULLSCREEN;
316 if (ph_SetupOpenGLContext(this, screen->w, screen->h, screen->format->BitsPerPixel, screen->flags)!=0)
318 screen->flags &= ~SDL_OPENGL;
327 void ph_DestroyImage(_THIS, SDL_Surface* screen)
331 if ((screen->flags & SDL_OPENGL)==SDL_OPENGL)
363 if ((screen->format->BitsPerPixel==8) && (desktopbpp!=8))
400 if (screen)
402 screen->pixels = NULL;
482 int ph_SetupUpdateFunction(_THIS, SDL_Surface* screen, Uint32 flags)
486 ph_DestroyImage(this, screen);
491 setupresult=ph_SetupOpenGLImage(this, screen);
498 setupresult=ph_SetupFullScreenImage(this, screen);
504 setupresult=ph_SetupOCImage(this, screen);
508 setupresult=ph_SetupImage(this, screen);
617 if ((src->hwdata==NULL) && (src != this->screen))
752 int ph_FlipHWSurface(_THIS, SDL_Surface* screen)
756 if ((screen->flags & SDL_FULLSCREEN) == SDL_FULLSCREEN)
764 farea.size.w=screen->w;
765 farea.size.h=screen->h;
859 if (((src == this->screen) || (src->hwdata!=NULL)) && ((dst == this->screen) || (dst->hwdata!=NULL)))
873 if (dst == this->screen)
875 if (src == this->screen)
877 /* blitting from main screen to main screen */
884 /* blitting from offscreen to main screen */
891 if (src == this->screen)
893 /* blitting from main screen to offscreen */