Ticket #861: xinerama_override_screenwh.patch
| File xinerama_override_screenwh.patch, 2.2 KB (added by , 19 years ago) |
|---|
-
libvo/x11_common.c
391 391 } 392 392 if (screen < 0) 393 393 screen = 0; 394 vo_screenwidth = screens[screen].width; 395 vo_screenheight = screens[screen].height; 394 if (vo_screenwidth_overridable) 395 vo_screenwidth = screens[screen].width; 396 if (vo_screenheight_overridable) 397 vo_screenheight = screens[screen].height; 396 398 xinerama_x = screens[screen].x_org; 397 399 xinerama_y = screens[screen].y_org; 398 400 … … 455 457 456 458 XF86VidModeGetModeLine(mDisplay, mScreen, &clock, &modeline); 457 459 if (!vo_screenwidth) 458 vo_screenwidth = modeline.hdisplay; 460 { 461 vo_screenwidth = modeline.hdisplay; 462 vo_screenwidth_overridable = 1; 463 } 459 464 if (!vo_screenheight) 465 { 460 466 vo_screenheight = modeline.vdisplay; 467 vo_screenheight_overridable = 1; 468 } 461 469 } 462 470 #endif 463 471 { 464 472 if (!vo_screenwidth) 473 { 465 474 vo_screenwidth = DisplayWidth(mDisplay, mScreen); 475 vo_screenwidth_overridable = 1; 476 } 466 477 if (!vo_screenheight) 478 { 467 479 vo_screenheight = DisplayHeight(mDisplay, mScreen); 480 vo_screenheight_overridable = 1; 481 } 468 482 } 469 483 // get color depth (from root window, or the best visual): 470 484 XGetWindowAttributes(mDisplay, mRootWin, &attribs); -
libvo/video_out.c
29 29 int vo_depthonscreen=0; 30 30 int vo_screenwidth=0; 31 31 int vo_screenheight=0; 32 int vo_screenwidth_overridable=0; 33 int vo_screenheight_overridable=0; 32 34 33 35 int vo_config_count=0; 34 36 -
libvo/video_out.h
198 198 extern int vo_depthonscreen; 199 199 extern int vo_screenwidth; 200 200 extern int vo_screenheight; 201 extern int vo_screenwidth_overridable; 202 extern int vo_screenheight_overridable; 201 203 202 204 // requested resolution/bpp: (-x -y -bpp options) 203 205 extern int vo_dx;
