Home
last modified time | relevance | path

Searched refs:SDL_Display (Results 1 – 13 of 13) sorted by relevance

/external/qemu/distrib/sdl-1.2.15/src/video/x11/
DSDL_x11mouse.c42 if ( SDL_Display != NULL ) { in X11_FreeWMCursor()
44 XFreeCursor(SDL_Display, cursor->x_cursor); in X11_FreeWMCursor()
45 XSync(SDL_Display, False); in X11_FreeWMCursor()
99 data_image = XCreateImage(SDL_Display, in X11_CreateWMCursor()
100 DefaultVisual(SDL_Display, SDL_Screen), in X11_CreateWMCursor()
104 data_pixmap = XCreatePixmap(SDL_Display, SDL_Root, w, h, 1); in X11_CreateWMCursor()
107 mask_image = XCreateImage(SDL_Display, in X11_CreateWMCursor()
108 DefaultVisual(SDL_Display, SDL_Screen), in X11_CreateWMCursor()
112 mask_pixmap = XCreatePixmap(SDL_Display, SDL_Root, w, h, 1); in X11_CreateWMCursor()
119 GCcursor = XCreateGC(SDL_Display, data_pixmap, in X11_CreateWMCursor()
[all …]
DSDL_x11wm.c65 dvis = DefaultVisual(SDL_Display, SDL_Screen); in X11_SetIcon()
66 dbpp = DefaultDepth(SDL_Display, SDL_Screen); in X11_SetIcon()
89 dcmap = DefaultColormap(SDL_Display, SDL_Screen); in X11_SetIcon()
187 mask_pixmap = XCreatePixmapFromBitmapData(SDL_Display, WMwindow, in X11_SetIcon()
193 icon_image = XCreateImage(SDL_Display, in X11_SetIcon()
194 DefaultVisual(SDL_Display, SDL_Screen), in X11_SetIcon()
195 DefaultDepth(SDL_Display, SDL_Screen), in X11_SetIcon()
201 icon_pixmap = XCreatePixmap(SDL_Display, SDL_Root, sicon->w, sicon->h, in X11_SetIcon()
202 DefaultDepth(SDL_Display, SDL_Screen)); in X11_SetIcon()
203 gc = XCreateGC(SDL_Display, icon_pixmap, 0, &GCvalues); in X11_SetIcon()
[all …]
DSDL_x11video.c333 int def_vis = (SDL_Visual == DefaultVisual(SDL_Display, SDL_Screen)); in create_aux_windows()
336 WM_DELETE_WINDOW = XInternAtom(SDL_Display, "WM_DELETE_WINDOW", False); in create_aux_windows()
346 XDestroyWindow(SDL_Display, FSwindow); in create_aux_windows()
355 xattr.background_pixel = def_vis ? BlackPixel(SDL_Display, SDL_Screen) : 0; in create_aux_windows()
359 FSwindow = XCreateWindow(SDL_Display, SDL_Root, in create_aux_windows()
368 XSelectInput(SDL_Display, FSwindow, StructureNotifyMask); in create_aux_windows()
378 ev.xclient.message_type = XInternAtom(SDL_Display, in create_aux_windows()
384 XSendEvent(SDL_Display, SDL_Root, False, mask, &ev); in create_aux_windows()
390 hints = XGetWMHints(SDL_Display, WMwindow); in create_aux_windows()
391 XDestroyWindow(SDL_Display, WMwindow); in create_aux_windows()
[all …]
DSDL_x11modes.c81 SDL_NAME(XF86VidModeGetModeInfo)(SDL_Display,SDL_Screen,&saved_mode); in save_mode()
82 SDL_NAME(XF86VidModeGetViewPort)(SDL_Display,SDL_Screen,&saved_view.x,&saved_view.y); in save_mode()
92 if ( SDL_NAME(XF86VidModeGetModeLine)(SDL_Display, SDL_Screen, &unused, &mode) ) { in restore_mode()
95 SDL_NAME(XF86VidModeSwitchToMode)(SDL_Display, SDL_Screen, &saved_mode); in restore_mode()
99 SDL_NAME(XF86VidModeSetViewPort)(SDL_Display, SDL_Screen, saved_view.x, saved_view.y); in restore_mode()
128 if ( SDL_NAME(XF86VidModeGetModeLine)(SDL_Display, SDL_Screen, &i, &mode) && in set_best_resolution()
129 SDL_NAME(XF86VidModeGetAllModeLines)(SDL_Display,SDL_Screen,&nmodes,&modes) ) { in set_best_resolution()
155 SDL_NAME(XF86VidModeSwitchToMode)(SDL_Display, SDL_Screen, modes[best]); in set_best_resolution()
190 XiGMiscChangeResolution(SDL_Display, in set_best_resolution()
196 XSync(SDL_Display, False); in set_best_resolution()
[all …]
DSDL_x11dga.c56 !SDL_NAME(XF86DGAQueryExtension)(SDL_Display, &dga_event, &dga_error) || in X11_EnableDGAMouse()
57 !SDL_NAME(XF86DGAQueryVersion)(SDL_Display, &dga_major, &dga_minor) || in X11_EnableDGAMouse()
58 !SDL_NAME(XF86DGAQueryDirectVideo)(SDL_Display, SDL_Screen, &dga_flags) || in X11_EnableDGAMouse()
65 if ( SDL_NAME(XF86DGADirectVideo)(SDL_Display, SDL_Screen, XF86DGADirectMouse) ) { in X11_EnableDGAMouse()
77 SDL_NAME(XF86DGADirectVideo)(SDL_Display,SDL_Screen,XF86DGADirectMouse); in X11_CheckDGAMouse()
86 SDL_NAME(XF86DGADirectVideo)(SDL_Display, SDL_Screen, 0); in X11_DisableDGAMouse()
DSDL_x11image.c61 XShmAttach(SDL_Display, &shminfo); in try_mitshm()
62 XSync(SDL_Display, True); in try_mitshm()
89 SDL_Ximage = XShmCreateImage(SDL_Display, SDL_Visual, in X11_SetupImage()
94 XShmDetach(SDL_Display, &shminfo); in X11_SetupImage()
95 XSync(SDL_Display, False); in X11_SetupImage()
110 SDL_Ximage = XCreateImage(SDL_Display, SDL_Visual, in X11_SetupImage()
136 XShmDetach(SDL_Display, &shminfo); in X11_DestroyImage()
137 XSync(SDL_Display, False); in X11_DestroyImage()
305 XShmPutImage(SDL_Display, SDL_Window, SDL_GC, SDL_Ximage, in X11_RefreshDisplay()
311 XPutImage(SDL_Display, SDL_Window, SDL_GC, SDL_Ximage, in X11_RefreshDisplay()
[all …]
DSDL_x11events.c355 while ( XCheckTypedEvent(SDL_Display, MotionNotify, xevent) ) { in X11_WarpedMotion()
367 XWarpPointer(SDL_Display, None, SDL_Window, 0, 0, 0, 0, in X11_WarpedMotion()
370 XMaskEvent(SDL_Display, PointerMotionMask, xevent); in X11_WarpedMotion()
400 XNextEvent(SDL_Display, &xevent); in X11_DispatchEvent()
406 && X11_KeyRepeat(SDL_Display, &xevent) ) { in X11_DispatchEvent()
514 X11_SetKeyboardState(SDL_Display, xevent.xkeymap.key_vector); in X11_DispatchEvent()
570 keysym.sym = X11_TranslateKeycode(SDL_Display, keycode); in X11_DispatchEvent()
678 keysym.sym = (keycode ? X11_TranslateKeycode(SDL_Display, keycode) : 0); in X11_DispatchEvent()
698 keysym.sym = X11_TranslateKeycode(SDL_Display, keycode); in X11_DispatchEvent()
731 keysym.sym = X11_TranslateKeycode(SDL_Display, keycode); in X11_DispatchEvent()
[all …]
DSDL_x11gamma.c66 succeeded = SDL_NAME(XF86VidModeSetGamma)(SDL_Display, SDL_Screen, &gamma); in X11_SetGammaNoLock()
67 XSync(SDL_Display, False); in X11_SetGammaNoLock()
99 if (SDL_NAME(XF86VidModeGetGamma)(SDL_Display, SDL_Screen, &gamma)) { in X11_GetGammaNoLock()
DSDL_x11video.h164 #define SDL_Display (this->hidden->X11_Display) macro
168 #define SDL_Root RootWindow(SDL_Display, SDL_Screen)
214 ((SDL_strcmp(ServerVendor(SDL_Display), "The XFree86 Project, Inc") == 0) && \
215 (VendorRelease(SDL_Display) condition buggy_version))
DSDL_x11gl.c123 XGetWindowAttributes(SDL_Display, SDL_Window, &a); in X11_GL_GetVisual()
126 glx_visualinfo = XGetVisualInfo(SDL_Display, in X11_GL_GetVisual()
237 black = (glx_visualinfo->visual == DefaultVisual(SDL_Display, in X11_GL_CreateWindow()
239 ? BlackPixel(SDL_Display, SDL_Screen) : 0; in X11_GL_CreateWindow()
245 SDL_Window = XCreateWindow(SDL_Display, WMwindow, in X11_GL_CreateWindow()
267 XSync( SDL_Display, False ); in X11_GL_CreateContext()
/external/qemu/distrib/sdl-1.2.15/src/video/maccommon/
DSDL_lowvideo.h55 GDevice **SDL_Display; member
89 #define SDL_Display (this->hidden->SDL_Display) macro
/external/qemu/distrib/sdl-1.2.15/src/video/macrom/
DSDL_romvideo.c209 SDL_Display = GetMainDevice(); in ROM_VideoInit()
212 this->info.current_w = (**SDL_Display).gdRect.right; in ROM_VideoInit()
213 this->info.current_h = (**SDL_Display).gdRect.bottom; in ROM_VideoInit()
216 vformat->BitsPerPixel = (**(**SDL_Display).gdPMap).pixelSize; in ROM_VideoInit()
246 SDL_modelist[0]->w = (**SDL_Display).gdRect.right; in ROM_VideoInit()
247 SDL_modelist[0]->h = (**SDL_Display).gdRect.bottom; in ROM_VideoInit()
528 current->pitch = (**(**SDL_Display).gdPMap).rowBytes & 0x3FFF; in ROM_SetVideoMode()
529 current->pixels = (**(**SDL_Display).gdPMap).baseAddr; in ROM_SetVideoMode()
678 cTab = (**(**SDL_Display).gdPMap).pmTable; in ROM_SetColors()
703 SetGDevice(SDL_Display); in ROM_SetColors()
/external/qemu/distrib/sdl-1.2.15/src/video/macdsp/
DSDL_dspvideo.c443 …err = NewGWorld (&offscreen, vformat->BitsPerPixel, &bounds, NULL, SDL_Display, useDistantHdwrMem … in DSp_IsHWAvailable()
449 …err = NewGWorld (&offscreen, vformat->BitsPerPixel, &bounds, NULL, SDL_Display, useLocalHdwrMem | … in DSp_IsHWAvailable()
549 if ( DSp_GetMainDevice(this, &SDL_Display) < 0) in DSp_VideoInit()
553 vformat->BitsPerPixel = GetPixDepth ( (**SDL_Display).gdPMap ); in DSp_VideoInit()
572 SDL_modelist = DSp_BuildModeList (SDL_Display, in DSp_VideoInit()
813 if ( noErr != DMGetDisplayIDByGDevice (SDL_Display, &display_id, SDL_FALSE) ) { in DSp_SetVideoMode()
939 …SDL_Window = NewCWindow(nil, &( (**SDL_Display).gdRect), "\p", SDL_TRUE, plainDBox, (WindowPtr)-1,… in DSp_SetVideoMode()
984 Uint32 depth = GetPixDepth ( GetGDevPixMap (SDL_Display) ); in DSp_MakeHWMask()
988 if ( noErr != NewGWorld (&(surface->hwdata->mask), depth, &rect, 0, SDL_Display, 0 ) < 0 ) { in DSp_MakeHWMask()
994 if ( noErr != NewGWorld (&temp, depth, &rect, 0 , SDL_Display, 0 ) ) { in DSp_MakeHWMask()
[all …]