Home
last modified time | relevance | path

Searched refs:scr_h (Results 1 – 25 of 124) sorted by relevance

12345

/dports/multimedia/mpv/mpv-0.34.1/video/out/
H A Dwin_state.c23 static void calc_monitor_aspect(struct mp_vo_opts *opts, int scr_w, int scr_h, in calc_monitor_aspect() argument
28 if (scr_w > 0 && scr_h > 0 && opts->force_monitor_aspect) in calc_monitor_aspect()
29 *pixelaspect = 1.0 / (opts->force_monitor_aspect * scr_h / scr_w); in calc_monitor_aspect()
39 static void apply_autofit(int *w, int *h, int scr_w, int scr_h, in apply_autofit() argument
47 m_geometry_apply(&dummy, &dummy, &n_w, &n_h, scr_w, scr_h, geo); in apply_autofit()
106 int scr_h = screen->y1 - screen->y0; in vo_calc_window_geometry3() local
111 MP_DBG(vo, "max content size: %dx%d\n", scr_w, scr_h); in vo_calc_window_geometry3()
116 apply_autofit(&d_w, &d_h, scr_w, scr_h, &opts->autofit, true, true); in vo_calc_window_geometry3()
118 apply_autofit(&d_w, &d_h, scr_w, scr_h, &opts->autofit_larger, false, true); in vo_calc_window_geometry3()
121 out_geo->win.y0 = (int)(scr_h - d_h) / 2; in vo_calc_window_geometry3()
[all …]
/dports/games/minerbold/minerbold-1.4/
H A Dmenu.lua61 menu_select('level_in', scr_h + h)
184 (scr_w - w) / 2, scr_h - h * 2, w, h, 'black');
187 (scr_w - w) / 2, scr_h - h * 2);
208 if level_out_mode >= scr_h + bh then level_out_mode = scr_h + bh end
212 if level_out_mode == scr_h + bh then
242 local h = (scr_h - sh) / 2
323 (scr_w - w) / 2, scr_h - h * 2);
547 local bh = scr_h / 2
550 local start_y = scr_h
593 if start_y >= scr_h then
[all …]
/dports/games/cube/cube_source/src/
H A Dmain.cpp46 int scr_h = 480; variable
53 … if(image = SDL_CreateRGBSurface(SDL_SWSURFACE, scr_w, scr_h, 24, 0x0000FF, 0x00FF00, 0xFF0000, 0)) in screenshot()
55 … if(temp = SDL_CreateRGBSurface(SDL_SWSURFACE, scr_w, scr_h, 24, 0x0000FF, 0x00FF00, 0xFF0000, 0)) in screenshot()
57 glReadPixels(0, 0, scr_w, scr_h, GL_RGB, GL_UNSIGNED_BYTE, image->pixels); in screenshot()
58 for (idx = 0; idx<scr_h; idx++) in screenshot()
61 memcpy(dest, (char *)image->pixels+3*scr_w*(scr_h-1-idx), 3*scr_w); in screenshot()
105 case 'h': scr_h = atoi(a); break; in main()
147 gl_init(scr_w, scr_h); in main()
193 readdepth(scr_w, scr_h); in main()
199 gl_drawframe(scr_w, scr_h, fps); in main()
[all …]
/dports/games/bloodfrontier/bloodfrontier/src/engine/
H A Dmain.cpp170 f->printf("scr_h %d\n", scr_h); in writeinitcfg()
224 scr_h = clamp(*h, SCR_MINH, SCR_MAXH); in screenres()
234 scr_h = screen->h; in screenres()
235 glViewport(0, 0, scr_w, scr_h); in screenres()
289 if((scr_w < 0 || scr_h < 0) && ratio > 0) in setupscreen()
291 int w = scr_w, h = scr_h; in setupscreen()
301 int w = scr_w, h = scr_h; in setupscreen()
320scr_h = min(scr_h >= 0 ? scr_h : (scr_w >= 0 ? (scr_w*SCR_DEFAULTH)/SCR_DEFAULTW : SCR_DEFAULTH), … in setupscreen()
323 if(scr_w < 0 && scr_h < 0) { scr_w = SCR_DEFAULTW; scr_h = SCR_DEFAULTH; } in setupscreen()
325 else if(scr_h < 0) scr_h = (scr_w*SCR_DEFAULTH)/SCR_DEFAULTW; in setupscreen()
[all …]
/dports/games/heroes/heroes-0.21/src/media/ggi/
H A Dvideo.c51 static int scr_w, scr_h; /* rendering buffer width and height */ variable
104 vid_mode.visible.y = scr_h; in setup_320x200x8_display()
120 vid_mode.visible.y = scr_h; in setup_320x200xB_display()
136 vid_mode.visible.y = scr_h; in setup_WWWxHHHxB_display()
199 scr_h = 200 * stretch; in init_video_low()
225 if (ggiSetGraphMode (render_visu, scr_w, scr_h, scr_w, scr_h, GT_8BIT)) in init_video_low()
311 scr_pitch * (vid_mode.visible.y - scr_h)/2; in vsynchro2_low()
325 ggiCrossBlit (render_visu, 0, 0, scr_w, scr_h, visu, in vsynchro2_low()
327 (vid_mode.visible.y - scr_h)/2); in vsynchro2_low()
/dports/games/libretro-picodrive/picodrive-600894e/platform/linux/
H A Dio.c34 static int scr_changed = 0, scr_w = 320, scr_h = 240; variable
120 xlib_screen = calloc(scr_w * scr_h, 4); in ximage_realloc()
123 xlib_screen, scr_w, scr_h, 32, 0); in ximage_realloc()
190 display_height / 2 - scr_h / 2, in xlib_threadf()
191 scr_w + 2, scr_h + 2, 1, in xlib_threadf()
218 if (scr_w != width - 2 || scr_h != height - 2) { in xlib_threadf()
220 scr_h = height - 2; in xlib_threadf()
260 int size = scr_w * scr_h * 2; in realloc_screen()
262 g_screen_height = g_menuscreen_h = scr_h; in realloc_screen()
/dports/games/kodi-addon-game.libretro.picodrive/game.libretro.picodrive-1.97.0.19-Matrix/depends/common/picodrive/platform/linux/
H A Dio.c34 static int scr_changed = 0, scr_w = 320, scr_h = 240; variable
120 xlib_screen = calloc(scr_w * scr_h, 4); in ximage_realloc()
123 xlib_screen, scr_w, scr_h, 32, 0); in ximage_realloc()
190 display_height / 2 - scr_h / 2, in xlib_threadf()
191 scr_w + 2, scr_h + 2, 1, in xlib_threadf()
218 if (scr_w != width - 2 || scr_h != height - 2) { in xlib_threadf()
220 scr_h = height - 2; in xlib_threadf()
260 int size = scr_w * scr_h * 2; in realloc_screen()
262 g_screen_height = g_menuscreen_h = scr_h; in realloc_screen()
/dports/math/giacxcas/fltk-1.3.0/src/
H A DFl_Window_hotspot.cxx43 int scr_x, scr_y, scr_w, scr_h; in hotspot() local
44 Fl::screen_xywh(scr_x, scr_y, scr_w, scr_h); in hotspot()
78 if (Y+h()+bottom > scr_h-scr_y) Y = scr_h-scr_y-bottom-h(); in hotspot()
H A Dfl_show_colormap.cxx122 int scr_x, scr_y, scr_w, scr_h; in handle() local
123 Fl::screen_xywh(scr_x, scr_y, scr_w, scr_h); in handle()
127 if (py+by+BOXSIZE+BORDER >= scr_y+scr_h) py = scr_y+scr_h-by-BOXSIZE-BORDER; in handle()
/dports/x11-toolkits/fltk/fltk-1.3.8/src/
H A DFl_Window_hotspot.cxx34 int scr_x, scr_y, scr_w, scr_h; in hotspot() local
35 Fl::screen_work_area(scr_x, scr_y, scr_w, scr_h); in hotspot()
69 if (Y+h()+bottom > scr_h+scr_y) Y = scr_h+scr_y-bottom-h(); in hotspot()
H A Dfl_show_colormap.cxx113 int scr_x, scr_y, scr_w, scr_h; in handle() local
114 Fl::screen_xywh(scr_x, scr_y, scr_w, scr_h); in handle()
118 if (py+by+BOXSIZE+BORDER >= scr_y+scr_h) py = scr_y+scr_h-by-BOXSIZE-BORDER; in handle()
/dports/x11/virtualgl/virtualgl-3.0/server/fltk/src/
H A DFl_Window_hotspot.cxx43 int scr_x, scr_y, scr_w, scr_h; in hotspot() local
44 Fl::screen_xywh(scr_x, scr_y, scr_w, scr_h); in hotspot()
78 if (Y+h()+bottom > scr_h-scr_y) Y = scr_h-scr_y-bottom-h(); in hotspot()
H A Dfl_show_colormap.cxx122 int scr_x, scr_y, scr_w, scr_h; in handle() local
123 Fl::screen_xywh(scr_x, scr_y, scr_w, scr_h); in handle()
127 if (py+by+BOXSIZE+BORDER >= scr_y+scr_h) py = scr_y+scr_h-by-BOXSIZE-BORDER; in handle()
H A DFl_Tooltip.cxx78 int scr_x, scr_y, scr_w, scr_h; in layout() local
79 Fl::screen_xywh(scr_x, scr_y, scr_w, scr_h); in layout()
84 if (oy+hh > scr_y+scr_h) oy -= 23+hh; in layout()
86 if (oy+hh > scr_y+scr_h) oy -= (4+hh+H); in layout()
/dports/x11-toolkits/ntk/ntk/src/
H A DFl_Window_hotspot.cxx43 int scr_x, scr_y, scr_w, scr_h; in hotspot() local
44 Fl::screen_xywh(scr_x, scr_y, scr_w, scr_h); in hotspot()
78 if (Y+h()+bottom > scr_h-scr_y) Y = scr_h-scr_y-bottom-h(); in hotspot()
H A Dfl_show_colormap.cxx122 int scr_x, scr_y, scr_w, scr_h; in handle() local
123 Fl::screen_xywh(scr_x, scr_y, scr_w, scr_h); in handle()
127 if (py+by+BOXSIZE+BORDER >= scr_y+scr_h) py = scr_y+scr_h-by-BOXSIZE-BORDER; in handle()
/dports/games/redeclipse16/base-1.6.0/src/engine/
H A Dmain.cpp174 VARF(0, scr_h, SCR_MINH, -1, SCR_MAXH, initwarning("screen resolution"));
187 f->printf("scr_h %d\n", scr_h); in writeinitcfg()
228 SDL_SetWindowSize(screen, scr_w, scr_h); in setfullscreen()
251 scr_h = clamp(h, SCR_MINH, SCR_MAXH); in screenres()
257 scr_h = min(scr_h, desktoph); in screenres()
264 else SDL_SetWindowSize(screen, scr_w, scr_h); in screenres()
329 if(scr_h < 0) scr_h = fullscreen ? desktoph : SCR_DEFAULTH; in setupscreen()
330 if(scr_w < 0) scr_w = (scr_h*desktopw)/desktoph; in setupscreen()
332 scr_h = clamp(scr_h, SCR_MINH, SCR_MAXH); in setupscreen()
336 scr_h = min(scr_h, desktoph); in setupscreen()
[all …]
/dports/games/redeclipse/base-2.0.0/src/engine/
H A Dmain.cpp197 VARFN(IDF_INIT, screenh, scr_h, SCR_MINH, -1, SCR_MAXH, initwarning("screen resolution"));
221 scr_h = clamp(display.h, SCR_MINH, SCR_MAXH); in setupdisplay()
227 scr_h = screenh; in setupdisplay()
243 SDL_SetWindowSize(screen, scr_w, scr_h); in setfullscreen()
262 scr_h = clamp(h, SCR_MINH, SCR_MAXH); in screenres()
269 scr_h = min(scr_h, desktoph); in screenres()
274 SDL_SetWindowSize(screen, scr_w, scr_h); in screenres()
339 if(scr_h < 0) scr_h = fullscreen ? desktoph : SCR_DEFAULTH; in setupscreen()
340 if(scr_w < 0) scr_w = (scr_h*desktopw)/desktoph; in setupscreen()
342 scr_h = clamp(scr_h, SCR_MINH, SCR_MAXH); in setupscreen()
[all …]
/dports/games/vultures-eye/vulture-2.3.67/slashem/win/gl/
H A Dgl_map.c80 my = win->base->total_h * th / 2 - win->base->scr_h / 2; in center_on_text_map()
99 fy = win->focus_y * th + th / 2 - win->base->scr_h / 2; in center_on_player()
604 fy > win->map_py + base->scr_h - marg_y) in update_jail()
606 win->map_py = fy - win->base->scr_h / 2; in update_jail()
637 jh = max(th, base->scr_h * sdlgl_jail_size / 100); in update_jail()
640 jy = win->map_py + base->scr_h/2 + win->jail_y - jh/2; in update_jail()
659 jy = win->map_py + base->scr_h/2 + win->jail_y - jh/2; in update_jail()
679 jy = win->map_py + base->scr_h/2 + win->jail_y - jh/2; in update_jail()
822 dy = cur_y - (base->scr_h / 2 + win->jail_y); in do_zoom()
1025 show_h = max(1, win->base->scr_h / th); in sdlgl_pan_map_window()
[all …]
/dports/games/heroes/heroes-0.21/src/media/allegro/
H A Dvideo.c28 static int scr_w, scr_h; /* rendering buffer width and height */ variable
74 scr_h = 200 * scr_stretch; in init_video_low()
79 gfxret = set_gfx_mode (GFX_AUTODETECT, scr_w, scr_h, 0, 0); in init_video_low()
/dports/games/tesseract-data/tesseract/src/engine/
H A Dmain.cpp102 VARFN(screenh, scr_h, SCR_MINH, -1, SCR_MAXH, initwarning("screen resolution"));
112 f->printf("screenh %d\n", scr_h); in writeinitcfg()
469 SDL_SetWindowSize(screen, scr_w, scr_h); in setfullscreen()
489 scr_h = clamp(h, SCR_MINH, SCR_MAXH); in screenres()
493 scr_h = min(scr_h, desktoph); in screenres()
495 else SDL_SetWindowSize(screen, scr_w, scr_h); in screenres()
559 if(scr_h < 0) scr_h = SCR_DEFAULTH; in setupscreen()
560 if(scr_w < 0) scr_w = (scr_h*desktopw)/desktoph; in setupscreen()
562 scr_h = min(scr_h, desktoph); in setupscreen()
603 renderh = min(scr_h, screenh); in setupscreen()
[all …]
/dports/games/tesseract/tesseract/src/engine/
H A Dmain.cpp102 VARFN(screenh, scr_h, SCR_MINH, -1, SCR_MAXH, initwarning("screen resolution"));
112 f->printf("screenh %d\n", scr_h); in writeinitcfg()
469 SDL_SetWindowSize(screen, scr_w, scr_h); in setfullscreen()
489 scr_h = clamp(h, SCR_MINH, SCR_MAXH); in screenres()
493 scr_h = min(scr_h, desktoph); in screenres()
495 else SDL_SetWindowSize(screen, scr_w, scr_h); in screenres()
559 if(scr_h < 0) scr_h = SCR_DEFAULTH; in setupscreen()
560 if(scr_w < 0) scr_w = (scr_h*desktopw)/desktoph; in setupscreen()
562 scr_h = min(scr_h, desktoph); in setupscreen()
603 renderh = min(scr_h, screenh); in setupscreen()
[all …]
/dports/games/sauerbraten/sauerbraten/src/engine/
H A Dmain.cpp104 VARF(scr_h, SCR_MINH, -1, SCR_MAXH, initwarning("screen resolution"));
117 f->printf("scr_h %d\n", scr_h); in writeinitcfg()
537 SDL_SetWindowSize(screen, scr_w, scr_h); in setfullscreen()
564 scr_h = clamp(h, SCR_MINH, SCR_MAXH); in screenres()
570 scr_h = min(scr_h, desktoph); in screenres()
580 SDL_SetWindowSize(screen, scr_w, scr_h); in screenres()
649 if(scr_h < 0) scr_h = fullscreen ? desktoph : SCR_DEFAULTH; in setupscreen()
650 if(scr_w < 0) scr_w = (scr_h*desktopw)/desktoph; in setupscreen()
652 scr_h = clamp(scr_h, SCR_MINH, SCR_MAXH); in setupscreen()
656 scr_h = min(scr_h, desktoph); in setupscreen()
[all …]
/dports/comms/flrig/flrig-1.3.54/src/widgets/
H A Dpl_tones.cxx116 int scr_x, scr_y, scr_w, scr_h; in handle() local
117 Fl::screen_xywh(scr_x, scr_y, scr_w, scr_h); in handle()
122 if (py + by + BOXHEIGHT + BORDER >= scr_y+scr_h) in handle()
123 py = scr_y + scr_h - by - BOXHEIGHT - BORDER; in handle()
/dports/games/assaultcube/AssaultCube_v1.2.0.2/source/src/
H A Dmain.cpp80 VARF(scr_h, 200, 768, 10000, initwarning("screen resolution"));
128 f->printf("scr_h %d\n", scr_h); in writeinitcfg()
490 scr_h = h; in screenres()
500 scr_h = screen->h; in screenres()
501 glViewport(0, 0, scr_w, scr_h); in screenres()
502 VIRTW = scr_w*VIRTH/scr_h; in screenres()
553 if(!hasmode) { scr_w = modes[0]->w; scr_h = modes[0]->h; } in setupscreen()
609 scr_h = screen->h; in setupscreen()
610 VIRTW = scr_w*VIRTH/scr_h; in setupscreen()
648 gl_init(scr_w, scr_h, usedcolorbits, useddepthbits, usedfsaa); in resetgl()
[all …]

12345