Home
last modified time | relevance | path

Searched refs:screen (Results 1 – 25 of 398) sorted by relevance

12345678910>>...16

/external/qemu/distrib/sdl-1.2.15/test/
Dgraywin.c18 void DrawBox(SDL_Surface *screen, int X, int Y, int width, int height) in DrawBox() argument
38 if (screen->format->BytesPerPixel==1) in DrawBox()
44 color = SDL_MapRGB(screen->format, randc, randc, randc); in DrawBox()
48 SDL_FillRect(screen, &area, color); in DrawBox()
49 if ( screen->flags & SDL_DOUBLEBUF ) { in DrawBox()
50 SDL_Flip(screen); in DrawBox()
52 SDL_UpdateRects(screen, 1, &area); in DrawBox()
56 void DrawBackground(SDL_Surface *screen) in DrawBackground() argument
68 if ( SDL_LockSurface(screen) < 0 ) { in DrawBackground()
73 buffer = (Uint8 *)screen->pixels; in DrawBackground()
[all …]
Dtestalpha.c23 static void FillBackground(SDL_Surface *screen) in FillBackground() argument
32 if ( SDL_LockSurface(screen) < 0 ) { in FillBackground()
37 buffer=(Uint8 *)screen->pixels; in FillBackground()
38 if (screen->format->BytesPerPixel!=2) { in FillBackground()
39 for ( i=0; i<screen->h; ++i ) { in FillBackground()
40 memset(buffer,(i*255)/screen->h, screen->w*screen->format->BytesPerPixel); in FillBackground()
41 buffer += screen->pitch; in FillBackground()
46 for ( i=0; i<screen->h; ++i ) { in FillBackground()
47 gradient=((i*255)/screen->h); in FillBackground()
48 color = (Uint16)SDL_MapRGB(screen->format, gradient, gradient, gradient); in FillBackground()
[all …]
Dtestvidinfo.c46 int RunBlitTests(SDL_Surface *screen, SDL_Surface *bmp, int blitcount) in RunBlitTests() argument
53 maxx = (int)screen->w - bmp->w + 1; in RunBlitTests()
54 maxy = (int)screen->h - bmp->h + 1; in RunBlitTests()
69 SDL_BlitSurface(bmp, NULL, screen, &dst); in RunBlitTests()
71 SDL_Flip(screen); in RunBlitTests()
77 int RunModeTests(SDL_Surface *screen) in RunModeTests() argument
100 SDL_FillRect(screen, NULL, SDL_MapRGB(screen->format, r, g, b)); in RunModeTests()
101 SDL_Flip(screen); in RunModeTests()
108 SDL_FillRect(screen, NULL, SDL_MapRGB(screen->format, r, g, b)); in RunModeTests()
109 SDL_Flip(screen); in RunModeTests()
[all …]
Dtestbitmap.c18 SDL_Surface *LoadXBM(SDL_Surface *screen, int w, int h, Uint8 *bits) in LoadXBM() argument
55 SDL_Surface *screen; in main() local
99 if ( (screen=SDL_SetVideoMode(640,480,video_bpp,videoflags)) == NULL ) { in main()
112 SDL_SetColors(screen, palette, 0, 256); in main()
116 if ( SDL_LockSurface(screen) < 0 ) { in main()
121 buffer=(Uint8 *)screen->pixels; in main()
122 if (screen->format->BytesPerPixel!=2) { in main()
123 for ( i=0; i<screen->h; ++i ) { in main()
124 memset(buffer,(i*255)/screen->h, screen->pitch); in main()
125 buffer += screen->pitch; in main()
[all …]
Dtestsprite.c62 void MoveSprites(SDL_Surface *screen, Uint32 background) in MoveSprites() argument
70 SDL_FillRect(screen, NULL, background); in MoveSprites()
78 if ( (position->x < 0) || (position->x >= (screen->w - sprite_w)) ) { in MoveSprites()
83 if ( (position->y < 0) || (position->y >= (screen->h - sprite_w)) ) { in MoveSprites()
90 SDL_BlitSurface(sprite, NULL, screen, &area); in MoveSprites()
95 if ( (screen->flags & SDL_DOUBLEBUF) == SDL_DOUBLEBUF ) { in MoveSprites()
98 Uint32 color = SDL_MapRGB (screen->format, 255, 0, 0); in MoveSprites()
100 r.x = (sin((float)t * 2 * 3.1459) + 1.0) / 2.0 * (screen->w-20); in MoveSprites()
103 r.h = screen->h; in MoveSprites()
105 SDL_FillRect (screen, &r, color); in MoveSprites()
[all …]
Dtestwin.c21 void DrawPict(SDL_Surface *screen, char *bmpfile, in DrawPict() argument
70 if ( ! SDL_SetColors(screen, colors, 0, ncolors) && in DrawPict()
71 (screen->format->palette != NULL) ) { in DrawPict()
79 if ( SDL_LockSurface(screen) == 0 ) { in DrawPict()
83 black = SDL_MapRGB(screen->format, 0, 0, 0); in DrawPict()
84 pixels = (Uint8 *)screen->pixels; in DrawPict()
85 for ( i=0; i<screen->h; ++i ) { in DrawPict()
87 screen->w*screen->format->BytesPerPixel); in DrawPict()
88 pixels += screen->pitch; in DrawPict()
90 SDL_UnlockSurface(screen); in DrawPict()
[all …]
Dtestwm.c25 SDL_Surface *screen; in SetVideoMode() local
30 screen = SDL_SetVideoMode(w, h, video_bpp, video_flags); in SetVideoMode()
31 if ( screen == NULL ) { in SetVideoMode()
36 printf("Running in %s mode\n", screen->flags & SDL_FULLSCREEN ? in SetVideoMode()
45 SDL_SetColors(screen, palette, 0, 256); in SetVideoMode()
46 if ( SDL_LockSurface(screen) < 0 ) { in SetVideoMode()
51 buffer = (Uint8 *)screen->pixels; in SetVideoMode()
52 for ( i=0; i<screen->h; ++i ) { in SetVideoMode()
53 memset(buffer,(i*255)/screen->h, in SetVideoMode()
54 screen->w*screen->format->BytesPerPixel); in SetVideoMode()
[all …]
Dtestpalette.c71 static SDL_Surface *make_bg(SDL_Surface *screen, int startcol) in make_bg() argument
74 SDL_Surface *bg = SDL_CreateRGBSurface(SDL_SWSURFACE, screen->w, screen->h, in make_bg()
81 SDL_SetColors(bg, screen->format->palette->colors, 0, 256); in make_bg()
134 SDL_Surface *screen; in main() local
170 if((screen = SDL_SetVideoMode(SCRW, SCRH, 8, vidflags | SDL_HWPALETTE)) == NULL) { in main()
193 SDL_SetPalette(screen, SDL_PHYSPAL, cmap, 0, 256); in main()
202 SDL_SetPalette(screen, SDL_LOGPAL, in main()
204 SDL_SetPalette(screen, SDL_LOGPAL, wavemap, boatcols, 64); in main()
210 memcpy(cmap, screen->format->palette->colors, 256 * sizeof(SDL_Color)); in main()
213 red = SDL_MapRGB(screen->format, 0xff, 0x00, 0x00); in main()
[all …]
Dthreadwin.c225 SDL_Surface *screen; in main() local
283 screen = SDL_SetVideoMode(640, 480, video_bpp, video_flags); in main()
284 if ( screen == NULL ) { in main()
289 printf("Running in %s mode\n", screen->flags & SDL_FULLSCREEN ? in main()
308 SDL_SetColors(screen, palette, 0, 256); in main()
309 if ( SDL_LockSurface(screen) < 0 ) { in main()
314 buffer = (Uint8 *)screen->pixels; in main()
315 for ( i=0; i<screen->h; ++i ) { in main()
316 memset(buffer,(i*255)/screen->h, in main()
317 screen->w*screen->format->BytesPerPixel); in main()
[all …]
Dtestgl.c36 SDL_Surface *screen; in HotKey_ToggleFullScreen() local
38 screen = SDL_GetVideoSurface(); in HotKey_ToggleFullScreen()
39 if ( SDL_WM_ToggleFullScreen(screen) ) { in HotKey_ToggleFullScreen()
41 (screen->flags&SDL_FULLSCREEN) ? "fullscreen" : "windowed"); in HotKey_ToggleFullScreen()
120 SDL_Surface *screen = SDL_GetVideoSurface(); in SDL_GL_Enter2DMode() local
134 glViewport(0, 0, screen->w, screen->h); in SDL_GL_Enter2DMode()
140 glOrtho(0.0, (GLdouble)screen->w, (GLdouble)screen->h, 0.0, 0.0, 1.0); in SDL_GL_Enter2DMode()
309 SDL_Surface *screen = SDL_GetVideoSurface(); in DrawLogoTexture() local
347 if ( (x+w) > screen->w ) { in DrawLogoTexture()
348 x = screen->w-w; in DrawLogoTexture()
[all …]
/external/jmonkeyengine/engine/src/niftygui/com/jme3/cinematic/events/
DGuiTrack.java50 protected String screen; field in GuiTrack
56 public GuiTrack(Nifty nifty, String screen) { in GuiTrack() argument
57 this.screen = screen; in GuiTrack()
61 public GuiTrack(Nifty nifty, String screen, float initialDuration) { in GuiTrack() argument
63 this.screen = screen; in GuiTrack()
67 public GuiTrack(Nifty nifty, String screen, LoopMode loopMode) { in GuiTrack() argument
69 this.screen = screen; in GuiTrack()
73 public GuiTrack(Nifty nifty, String screen, float initialDuration, LoopMode loopMode) { in GuiTrack() argument
75 this.screen = screen; in GuiTrack()
81 System.out.println("screen should be "+screen); in onPlay()
[all …]
/external/qemu/distrib/sdl-1.2.15/src/video/
DSDL_cursor.c304 if (this->screen->pitch == 0) { in SDL_WarpMouse()
305 x += this->screen->offset / this->screen->format->BytesPerPixel; in SDL_WarpMouse()
306 y += this->screen->offset; in SDL_WarpMouse()
308 x += (this->screen->offset % this->screen->pitch) / in SDL_WarpMouse()
309 this->screen->format->BytesPerPixel; in SDL_WarpMouse()
310 y += (this->screen->offset / this->screen->pitch); in SDL_WarpMouse()
371 static void SDL_DrawCursorFast(SDL_Surface *screen, SDL_Rect *area) in SDL_DrawCursorFast() argument
380 switch (screen->format->BytesPerPixel) { in SDL_DrawCursorFast()
387 pixels8[0] = (Uint8)SDL_MapRGB(screen->format, 255, 255, 255); in SDL_DrawCursorFast()
388 pixels8[1] = (Uint8)SDL_MapRGB(screen->format, 0, 0, 0); in SDL_DrawCursorFast()
[all …]
/external/qemu/distrib/sdl-1.2.15/src/video/photon/
DSDL_ph_image.c35 int ph_SetupImage(_THIS, SDL_Surface *screen) in ph_SetupImage() argument
41 bpp=screen->format->BitsPerPixel; in ph_SetupImage()
86 …if ((SDL_Image = PhCreateImage(NULL, screen->w, screen->h, type, palette, _Pg_MAX_PALETTE, 1)) == … in ph_SetupImage()
96 if ((SDL_Image = PhCreateImage(NULL, screen->w, screen->h, type, NULL, 0, 1)) == NULL) in ph_SetupImage()
103 screen->pixels = SDL_Image->image; in ph_SetupImage()
104 screen->pitch = SDL_Image->bpl; in ph_SetupImage()
111 int ph_SetupOCImage(_THIS, SDL_Surface *screen) in ph_SetupOCImage() argument
116 OCImage.flags = screen->flags; in ph_SetupOCImage()
118 bpp=screen->format->BitsPerPixel; in ph_SetupOCImage()
151 …OCImage.offscreen_context = PdCreateOffscreenContext(0, screen->w, screen->h, Pg_OSC_MEM_PAGE_ALIG… in ph_SetupOCImage()
[all …]
DSDL_ph_modes.c242 int ph_EnterFullScreen(_THIS, SDL_Surface* screen, int fmode) in ph_EnterFullScreen() argument
252 if (screen->flags & SDL_ANYFORMAT) in ph_EnterFullScreen()
254 … if ((mode = get_mode_any_format(screen->w, screen->h, screen->format->BitsPerPixel)) == 0) in ph_EnterFullScreen()
262 if ((mode = ph_GetVideoMode(screen->w, screen->h, screen->format->BitsPerPixel)) == 0) in ph_EnterFullScreen()
272 if (mode_info.height != screen->h) in ph_EnterFullScreen()
274 if ((mode_info.height==480) && (screen->h==400)) in ph_EnterFullScreen()
310 if (this->screen) in ph_EnterFullScreen()
312 if ((this->screen->flags & SDL_OPENGL)==SDL_OPENGL) in ph_EnterFullScreen()
348 if ((this->screen) && ((this->screen->flags & SDL_OPENGL)==SDL_OPENGL)) in ph_LeaveFullScreen()
/external/qemu/distrib/sdl-1.2.15/src/video/x11/
DSDL_x11image.c45 static void try_mitshm(_THIS, SDL_Surface *screen) in try_mitshm() argument
53 shminfo.shmid = shmget(IPC_PRIVATE, screen->h*screen->pitch, in try_mitshm()
76 screen->pixels = shminfo.shmaddr; in try_mitshm()
84 int X11_SetupImage(_THIS, SDL_Surface *screen) in X11_SetupImage() argument
87 try_mitshm(this, screen); in X11_SetupImage()
92 screen->w, screen->h); in X11_SetupImage()
97 screen->pixels = NULL; in X11_SetupImage()
105 screen->pixels = SDL_malloc(screen->h*screen->pitch); in X11_SetupImage()
106 if ( screen->pixels == NULL ) { in X11_SetupImage()
112 (char *)screen->pixels, in X11_SetupImage()
[all …]
/external/qemu/distrib/sdl-1.2.15/src/video/nanox/
DSDL_nximage.c40 xinc = this -> screen -> format -> BytesPerPixel ; in NX_NormalUpdate()
41 yinc = this -> screen -> pitch ; in NX_NormalUpdate()
121 int NX_SetupImage (_THIS, SDL_Surface * screen) in NX_SetupImage() argument
123 int size = screen -> h * screen -> pitch ; in NX_SetupImage()
127 screen -> pixels = (void *) SDL_malloc (size) ; in NX_SetupImage()
131 if (screen -> pixels == NULL || Image_buff == NULL) { in NX_SetupImage()
132 SDL_free (screen -> pixels) ; in NX_SetupImage()
139 SDL_Image = (unsigned char *) screen -> pixels ; in NX_SetupImage()
147 void NX_DestroyImage (_THIS, SDL_Surface * screen) in NX_DestroyImage() argument
153 if (screen) screen -> pixels = NULL ; in NX_DestroyImage()
[all …]
/external/qemu/distrib/sdl-1.2.15/src/video/Xext/extensions/
Dxf86dga.h106 int screen; member
116 int screen; member
126 int screen; member
155 int screen,
161 int screen,
167 int screen
172 int screen
177 int screen,
185 int screen,
191 int screen,
[all …]
/external/chromium/chrome/browser/tab_contents/
Dweb_drag_source_win.cc20 gfx::Point* screen) { in GetCursorPositions() argument
23 screen->SetPoint(cursor_pos.x, cursor_pos.y); in GetCursorPositions()
61 gfx::Point screen; in OnDragSourceCancel() local
62 GetCursorPositions(source_wnd_, &client, &screen); in OnDragSourceCancel()
64 screen.x(), screen.y(), in OnDragSourceCancel()
84 gfx::Point screen; in DelayedOnDragSourceDrop() local
85 GetCursorPositions(source_wnd_, &client, &screen); in DelayedOnDragSourceDrop()
87 client.x(), client.y(), screen.x(), screen.y(), in DelayedOnDragSourceDrop()
104 gfx::Point screen; in OnDragSourceMove() local
105 GetCursorPositions(source_wnd_, &client, &screen); in OnDragSourceMove()
[all …]
/external/qemu/distrib/sdl-1.2.15/src/video/Xext/Xxf86dga/
DXF86DGA.c103 int screen, in SDL_NAME()
119 req->screen = screen; in SDL_NAME()
139 int screen, in SDL_NAME()
151 req->screen = screen; in SDL_NAME()
161 int screen, in SDL_NAME()
175 req->screen = screen; in SDL_NAME()
193 int screen, in SDL_NAME()
206 req->screen = screen; in SDL_NAME()
218 int screen, in SDL_NAME()
231 req->screen = screen; in SDL_NAME()
[all …]
DXF86DGA2.c115 mevent->screen = wire->u.event.screen; in xdga_wire_to_event()
127 bevent->screen = wire->u.event.screen; in xdga_wire_to_event()
138 kevent->screen = wire->u.event.screen; in xdga_wire_to_event()
227 int screen in SDL_NAME()
241 req->screen = screen; in SDL_NAME()
253 ret = SDL_NAME(XDGAMapFramebuffer)(screen, deviceName, in SDL_NAME()
267 int screen in SDL_NAME()
274 SDL_NAME(XDGAUnmapFramebuffer)(screen); in SDL_NAME()
280 req->screen = screen; in SDL_NAME()
289 int screen, in SDL_NAME()
[all …]
/external/qemu/distrib/sdl-1.2.15/src/video/ps2gs/
DSDL_gsmouse.c53 SDL_Surface *screen; in GS_MoveCursor() local
70 screen = this->screen; in GS_MoveCursor()
71 saved_pixels = screen->pixels; in GS_MoveCursor()
72 screen->pixels = mapped_mem + screen->offset; in GS_MoveCursor()
75 SDL_EraseCursorNoLock(screen); in GS_MoveCursor()
92 if ( (SDL_cursorstate & CURSOR_VISIBLE) && screen->pixels ) { in GS_MoveCursor()
93 SDL_DrawCursorNoLock(screen); in GS_MoveCursor()
98 screen->pixels = saved_pixels; in GS_MoveCursor()
110 image.y += screen->offset / screen->pitch + mouse_y1; in GS_MoveCursor()
113 (image.y - screen_image.y) * screen->pitch; in GS_MoveCursor()
/external/robolectric/src/test/java/com/xtremelabs/robolectric/res/
DPreferenceLoaderTest.java45 PreferenceScreen screen = prefLoader.inflatePreferences(new Activity(), "xml/preferences"); in shouldCreateCorrectClasses() local
46 assertThatScreenMatchesExpected(screen); in shouldCreateCorrectClasses()
51 … PreferenceScreen screen = prefLoader.inflatePreferences(new Activity(), R.xml.preferences); in shouldLoadByResourceId() local
52 assertThatScreenMatchesExpected(screen); in shouldLoadByResourceId()
68 protected void assertThatScreenMatchesExpected(PreferenceScreen screen) { in assertThatScreenMatchesExpected() argument
69 assertThat(screen.getPreferenceCount(), equalTo(6)); in assertThatScreenMatchesExpected()
71 assertThat(screen.getPreference(0), instanceOf(PreferenceCategory.class)); in assertThatScreenMatchesExpected()
72 …assertThat(((PreferenceCategory)screen.getPreference(0)).getPreference(0), instanceOf(Preference.c… in assertThatScreenMatchesExpected()
74 assertThat(screen.getPreference(1), instanceOf(CheckBoxPreference.class)); in assertThatScreenMatchesExpected()
75 assertThat(screen.getPreference(2), instanceOf(EditTextPreference.class)); in assertThatScreenMatchesExpected()
[all …]
/external/qemu/distrib/sdl-1.2.15/src/video/Xext/Xxf86vm/
DXF86VMode.c170 SDL_NAME(XF86VidModeSetGamma)(Display *dpy, int screen, SDL_NAME(XF86VidModeGamma) *Gamma) in SDL_NAME()
181 req->screen = screen; in SDL_NAME()
191 SDL_NAME(XF86VidModeGetGamma)(Display *dpy, int screen, SDL_NAME(XF86VidModeGamma) *Gamma) in SDL_NAME()
203 req->screen = screen; in SDL_NAME()
218 SDL_NAME(XF86VidModeGetModeLine)(dpy, screen, dotclock, modeline)
220 int screen; variable
237 req->screen = screen;
295 SDL_NAME(XF86VidModeGetAllModeLines)(dpy, screen, modecount, modelinesPtr)
297 int screen; variable
333 req->screen = screen;
[all …]
/external/webkit/Source/WebCore/platform/haiku/
DScreenHaiku.cpp46 BScreen screen; in screenRect() local
48 return FloatRect(screen.Frame()); in screenRect()
60 BScreen screen; in screenDepth() local
62 color_space cs = screen.ColorSpace(); in screenDepth()
80 BScreen screen; in screenIsMonochrome() local
82 return screen.ColorSpace() == B_MONOCHROME_1_BIT; in screenIsMonochrome()
/external/webkit/Source/WebCore/css/
Dfullscreen.css1 :-webkit-full-screen {
5 :root:full-screen-document:not(:full-screen) {
9 video:-webkit-full-screen {
19 img:-webkit-full-screen {
25 video:-webkit-full-page-media:-webkit-full-screen::-webkit-media-controls-panel {

12345678910>>...16