Home | History | Annotate | Download | only in nanox

Lines Matching refs:screen

40     xinc = this -> screen -> format -> BytesPerPixel ;
41 yinc = this -> screen -> pitch ;
121 int NX_SetupImage (_THIS, SDL_Surface * screen)
123 int size = screen -> h * screen -> pitch ;
127 screen -> pixels = (void *) SDL_malloc (size) ;
131 if (screen -> pixels == NULL || Image_buff == NULL) {
132 SDL_free (screen -> pixels) ;
139 SDL_Image = (unsigned char *) screen -> pixels ;
147 void NX_DestroyImage (_THIS, SDL_Surface * screen)
153 if (screen) screen -> pixels = NULL ;
158 int NX_ResizeImage (_THIS, SDL_Surface * screen, Uint32 flags)
165 NX_DestroyImage (this, screen) ;
166 retval = NX_SetupImage (this, screen) ;
169 OffsetX = (si.cols - screen -> w) / 2 ;
170 OffsetY = (si.rows - screen -> h) / 2 ;
202 xinc = this -> screen -> format -> BytesPerPixel ;
203 yinc = this -> screen -> pitch ;
211 rowinc = xinc * this -> screen -> w;
213 for (j = this -> screen -> h; j > 0; -- j, src += yinc, dest += fbinfo.pitch)
220 GrArea (FSwindow, SDL_GC, OffsetX, OffsetY, this -> screen -> w,
221 this -> screen -> h, SDL_Image, pixel_type) ;
223 GrArea (SDL_Window, SDL_GC, 0, 0, this -> screen -> w,
224 this -> screen -> h, SDL_Image, pixel_type) ;