Home
last modified time | relevance | path

Searched refs:SDL_VideoSurface (Results 1 – 25 of 44) sorted by relevance

12

/external/qemu/distrib/sdl-1.2.12/src/events/
DSDL_mouse.c95 if ( SDL_VideoSurface->offset ) { in ClipOffset()
96 *y -= SDL_VideoSurface->offset/SDL_VideoSurface->pitch; in ClipOffset()
97 *x -= (SDL_VideoSurface->offset%SDL_VideoSurface->pitch)/ in ClipOffset()
98 SDL_VideoSurface->format->BytesPerPixel; in ClipOffset()
111 if ( SDL_VideoSurface == NULL ) { in SDL_PrivateMouseMotion()
135 if ( x >= SDL_VideoSurface->w ) in SDL_PrivateMouseMotion()
136 X = SDL_VideoSurface->w-1; in SDL_PrivateMouseMotion()
143 if ( y >= SDL_VideoSurface->h ) in SDL_PrivateMouseMotion()
144 Y = SDL_VideoSurface->h-1; in SDL_PrivateMouseMotion()
209 if ( x >= SDL_VideoSurface->w ) in SDL_PrivateMouseButton()
[all …]
DSDL_resize.c53 if ( ! SDL_VideoSurface || in SDL_PrivateResize()
54 ((w == SDL_VideoSurface->w) && (h == SDL_VideoSurface->h)) ) { in SDL_PrivateResize()
/external/qemu/distrib/sdl-1.2.12/src/video/
DSDL_video.c247 SDL_VideoSurface = SDL_CreateRGBSurface(video_flags, 0, 0, in SDL_VideoInit()
250 if ( SDL_VideoSurface == NULL ) { in SDL_VideoInit()
261 if ( SDL_VideoSurface->format->palette ) { in SDL_VideoInit()
262 SDL_PixelFormat *vf = SDL_VideoSurface->format; in SDL_VideoInit()
268 video->info.vfmt = SDL_VideoSurface->format; in SDL_VideoInit()
332 if ( SDL_VideoSurface ) { in SDL_ListModes()
334 format = SDL_VideoSurface->format; in SDL_ListModes()
459 SDL_closest_depths[table][7] = SDL_VideoSurface->format->BitsPerPixel; in SDL_GetVideoMode()
517 if ( depth == (SDL_VideoSurface->format)->BitsPerPixel ) { in SDL_CreateShadowSurface()
518 Rmask = (SDL_VideoSurface->format)->Rmask; in SDL_CreateShadowSurface()
[all …]
DSDL_cursor.c185 SDL_EraseCursor(SDL_VideoSurface); in SDL_SetCursor()
217 SDL_DrawCursor(SDL_VideoSurface); in SDL_SetCursor()
222 SDL_EraseCursor(SDL_VideoSurface); in SDL_SetCursor()
329 SDL_EraseCursor(SDL_VideoSurface); in SDL_MoveCursor()
332 SDL_DrawCursor(SDL_VideoSurface); in SDL_MoveCursor()
361 clip_diff = (area->x+area->w)-SDL_VideoSurface->w; in SDL_MouseRect()
365 clip_diff = (area->y+area->h)-SDL_VideoSurface->h; in SDL_MouseRect()
572 if ( screen->map->dst != SDL_VideoSurface ) { in SDL_ConvertCursorSave()
588 info.dst = SDL_VideoSurface->format; in SDL_ConvertCursorSave()
611 if ( (screen == SDL_VideoSurface) || in SDL_DrawCursorNoLock()
[all …]
DSDL_yuv.c48 ((SDL_VideoSurface->format->BytesPerPixel == 2) || in SDL_CreateYUVOverlay()
49 (SDL_VideoSurface->format->BytesPerPixel == 4)) ) { in SDL_CreateYUVOverlay()
50 display = SDL_VideoSurface; in SDL_CreateYUVOverlay()
55 if ( ((display == SDL_VideoSurface) && video->CreateYUVOverlay) && in SDL_CreateYUVOverlay()
/external/qemu/distrib/sdl-1.2.12/src/video/wincommon/
DSDL_lowvideo.h56 SDL_VideoSurface && \
57 ((SDL_VideoSurface->flags & SDL_FULLSCREEN) == SDL_FULLSCREEN) && \
58 (((SDL_VideoSurface->flags & SDL_OPENGL ) == SDL_OPENGL ) || \
64 SDL_VideoSurface && \
65 ((SDL_VideoSurface->flags & SDL_FULLSCREEN) == SDL_FULLSCREEN) && \
66 ((SDL_VideoSurface->flags & SDL_OPENGL ) != SDL_OPENGL ) && \
DSDL_sysevents.c164 if (!SDL_VideoSurface) in GapiTransform()
166 rotatedX = SDL_VideoSurface->w - *y; in GapiTransform()
172 if (!SDL_VideoSurface) in GapiTransform()
175 rotatedY = SDL_VideoSurface->h - *x; in GapiTransform()
416 if ( SDL_VideoSurface && ! DINPUT_FULLSCREEN() ) { in WinMessage()
439 center.x = (SDL_VideoSurface->w/2); in WinMessage()
440 center.y = (SDL_VideoSurface->h/2); in WinMessage()
450 if (SDL_VideoSurface) in WinMessage()
463 if ( SDL_VideoSurface && ! DINPUT_FULLSCREEN() ) { in WinMessage()
483 if ( SDL_VideoSurface && ! DINPUT_FULLSCREEN() ) { in WinMessage()
[all …]
DSDL_syswm.c286 pt.x = (SDL_VideoSurface->w/2); in WIN_GrabInput()
287 pt.y = (SDL_VideoSurface->h/2); in WIN_GrabInput()
/external/qemu/distrib/sdl-1.2.12/src/video/quartz/
DSDL_QuartzWindow.m59 if (SDL_VideoSurface->flags & SDL_OPENGL) {
90 if (! ( SDL_VideoSurface->flags & SDL_OPENGL ) )
115 if (this && SDL_VideoSurface == NULL) {
130 if ( ! ( SDL_VideoSurface->flags & SDL_OPENGL ) ) {
135 SDL_VideoSurface->pixels = GetPixBaseAddr ( GetPortPixMap ( thePort ) );
136 SDL_VideoSurface->pitch = GetPixRowBytes ( GetPortPixMap ( thePort ) );
139 SDL_VideoSurface->pixels now points to the window's pixels
148SDL_VideoSurface->pixels = (Uint8 *)SDL_VideoSurface->pixels + (vOffset * SDL_VideoSurface->pitch)…
168 if (! ( SDL_VideoSurface->flags & SDL_OPENGL ) )
DSDL_QuartzYUV.m98 if (SDL_VideoSurface->flags & SDL_FULLSCREEN) {
154 if (SDL_VideoSurface->flags & SDL_FULLSCREEN) {
160 NSRect content = NSMakeRect (0, 0, SDL_VideoSurface->w, SDL_VideoSurface->h);
186 SetRect (&r, 0, 0, SDL_VideoSurface->w, SDL_VideoSurface->h);
DSDL_QuartzVideo.m991 * We have to add SDL_VideoSurface->offset here, since we might be a
996 dst = (Uint8 *)CGDisplayBaseAddress (display_id) + SDL_VideoSurface->offset;
997 src = current_buffer + SDL_VideoSurface->offset;
998 len = SDL_VideoSurface->w * SDL_VideoSurface->format->BytesPerPixel;
999 h = SDL_VideoSurface->h;
1000 skip = SDL_VideoSurface->pitch;
1088 this->FlipHWSurface (this, SDL_VideoSurface);
1407 if (SDL_VideoSurface->flags & SDL_RESIZABLE) {
1410 SetRect (&icon, SDL_VideoSurface->w - 13, SDL_VideoSurface->h - 13,
1411 SDL_VideoSurface->w, SDL_VideoSurface->h);
[all …]
/external/qemu/distrib/sdl-1.2.12/src/video/ipod/
DSDL_ipodvideo.c384 if (SDL_VideoSurface && SDL_VideoSurface->format && SDL_VideoSurface->format->palette) { in iPod_SetColors()
388 SDL_VideoSurface->format->palette->colors[i+j].r = 85 * j; in iPod_SetColors()
389 SDL_VideoSurface->format->palette->colors[i+j].g = 85 * j; in iPod_SetColors()
390 SDL_VideoSurface->format->palette->colors[i+j].b = 85 * j; in iPod_SetColors()
652 char *addr = SDL_VideoSurface->pixels; in C_update_display()
658 C_lcd_cmd_data(0x13, (((SDL_VideoSurface->w - 1) - sx) & 0xff)); in C_update_display()
662 C_lcd_cmd_data(0x16, (((((SDL_VideoSurface->w - 1) - sx) - width) + 1) & 0xff)); in C_update_display()
664 addr += sx + sy * SDL_VideoSurface->pitch; in C_update_display()
698 addr += SDL_VideoSurface->w - width; in C_update_display()
712 if (SDL_VideoSurface->format->BitsPerPixel == 16) { in iPod_UpdateRects()
[all …]
/external/qemu/distrib/sdl-1.2.12/src/video/cybergfx/
DSDL_amigaevents.c59 w = SDL_VideoSurface->w;
60 h = SDL_VideoSurface->h;
166 if ( SDL_VideoSurface ) { in amiga_DispatchEvent()
233 if ( SDL_VideoSurface && in amiga_DispatchEvent()
234 (SDL_VideoSurface->flags & SDL_FULLSCREEN) ) in amiga_DispatchEvent()
240 if ( SDL_VideoSurface ) { in amiga_DispatchEvent()
246 if ( SDL_VideoSurface && (xevent.xexpose.count == 0) ) { in amiga_DispatchEvent()
DSDL_cgxaccel.c212 if(dst==SDL_VideoSurface) in CGX_HWAccelBlit()
233 else if(dst==SDL_VideoSurface) in CGX_HWAccelBlit()
245 if(dst==SDL_VideoSurface) in CGX_FillHWRect()
/external/qemu/distrib/sdl-1.2.12/src/video/bwindow/
DSDL_sysevents.cc182 } else if ( x >= SDL_VideoSurface->w ) { in DispatchMessage()
183 x = (SDL_VideoSurface->w-1); in DispatchMessage()
189 } else if ( y >= SDL_VideoSurface->h ) { in DispatchMessage()
190 y = (SDL_VideoSurface->h-1); in DispatchMessage()
215 int half_w = (SDL_VideoSurface->w/2); in DispatchMessage()
216 int half_h = (SDL_VideoSurface->h/2); in DispatchMessage()
DSDL_syswm.cc66 pt.x = (SDL_VideoSurface->w/2); in BE_GrabInput()
67 pt.y = (SDL_VideoSurface->h/2); in BE_GrabInput()
/external/qemu/distrib/sdl-1.2.12/src/video/x11/
DSDL_x11events.c333 w = SDL_VideoSurface->w; in X11_WarpedMotion()
334 h = SDL_VideoSurface->h; in X11_WarpedMotion()
515 if ( SDL_VideoSurface ) { in X11_DispatchEvent()
804 if ( SDL_VideoSurface && in X11_DispatchEvent()
805 (SDL_VideoSurface->flags & SDL_FULLSCREEN) ) { in X11_DispatchEvent()
812 if ( SDL_VideoSurface ) { in X11_DispatchEvent()
823 if ( SDL_VideoSurface ) { in X11_DispatchEvent()
824 if ((xevent.xconfigure.width != SDL_VideoSurface->w) || in X11_DispatchEvent()
825 (xevent.xconfigure.height != SDL_VideoSurface->h)) { in X11_DispatchEvent()
834 if ( SDL_VideoSurface->flags & SDL_OPENGL ) { in X11_DispatchEvent()
[all …]
DSDL_x11image.c219 if ( (surface == SDL_VideoSurface) && blit_queued ) { in X11_LockHWSurface()
247 if ( SDL_VideoSurface->flags & SDL_ASYNCBLIT ) { in X11_NormalUpdate()
269 if ( SDL_VideoSurface->flags & SDL_ASYNCBLIT ) { in X11_MITSHMUpdate()
/external/qemu/distrib/sdl-1.2.12/src/video/photon/
DSDL_ph_wm.c88 … PhMoveCursorAbs(PhInputGroup(NULL), abs_x + SDL_VideoSurface->w/2, abs_y + SDL_VideoSurface->h/2); in ph_GrabInputNoLock()
DSDL_ph_events.c60 centre_x = SDL_VideoSurface->w / 2; in ph_WarpedMotion()
61 centre_y = SDL_VideoSurface->h / 2; in ph_WarpedMotion()
140 if (SDL_VideoSurface) in ph_DispatchEvent()
290 if (SDL_VideoSurface) in ph_DispatchEvent()
/external/qemu/distrib/sdl-1.2.12/src/video/gapi/
DSDL_gapivideo.c711 SDL_VideoSurface = video; in GAPI_SetVideoMode()
859 line2 = srcPointer + SDL_VideoSurface->pitch / 2; in updateLine16to16()
917 line2 = srcPointer + SDL_VideoSurface->pitch / 2; in updateLine16to16()
978 line2 = srcPointer + SDL_VideoSurface->pitch / 2; in updateLine16to4()
1042 …srcPointer = ((unsigned char*) SDL_VideoSurface->pixels) + rects[i].y * SDL_VideoSurface->pitch + … in GAPI_UpdateRectsMono()
1059 srcPointer += SDL_VideoSurface->pitch * linesProcessed; // pitch in bytes in GAPI_UpdateRectsMono()
1071 …unsigned char *srcPointer = ((unsigned char*) SDL_VideoSurface->pixels) + rects[i].y * SDL_VideoSu… in GAPI_UpdateRectsColor()
1091 srcPointer += SDL_VideoSurface->pitch * linesProcessed; // pitch in bytes in GAPI_UpdateRectsColor()
/external/qemu/distrib/sdl-1.2.12/src/video/nanox/
DSDL_nxevents.c215 if (SDL_VideoSurface) { in NX_PumpEvents()
309 if (SDL_VideoSurface) { in NX_PumpEvents()
326 if (SDL_VideoSurface) { in NX_PumpEvents()
/external/qemu/distrib/sdl-1.2.12/src/video/maccommon/
DSDL_macevents.c91 if ( SDL_VideoSurface && !(SDL_VideoSurface->flags&SDL_FULLSCREEN) ) { in myGlobalToLocal()
389 if (SDL_VideoSurface->flags & SDL_OPENGL) in Mac_HandleEvents()
393 if ( (SDL_VideoSurface->flags & SDL_HWSURFACE) == in Mac_HandleEvents()
395 SDL_UpdateRect(SDL_VideoSurface, 0, 0, 0, 0); in Mac_HandleEvents()
/external/qemu/distrib/sdl-1.2.12/src/video/riscos/
DSDL_riscosevents.c307 int centre_x = SDL_VideoSurface->w/2; in RISCOS_PollMouseHelper()
308 int centre_y = SDL_VideoSurface->h/2; in RISCOS_PollMouseHelper()
312 if (SDL_VideoSurface) SDL_PrivateMouseMotion(0,1,x - centre_x, y - centre_y); in RISCOS_PollMouseHelper()
/external/qemu/distrib/sdl-1.2.12/src/video/dga/
DSDL_dgaevents.c56 if ( SDL_VideoSurface ) { in DGA_DispatchEvent()

12