Ticket #6548: x11_refresh_connection.diff
File x11_refresh_connection.diff, 2.0 KB (added by , 16 years ago) |
---|
-
libs/libmythtv/videoout_xv.cpp
356 356 if (!XJ_started) 357 357 return -1; 358 358 359 return MythXGetRefreshRate( XJ_disp, XJ_screen_num);359 return MythXGetRefreshRate(); 360 360 } 361 361 362 362 void VideoOutputXv::ResizeForVideo(void) -
libs/libmythui/util-x11.cpp
237 237 return pixelAspect; 238 238 } 239 239 240 int MythXGetRefreshRate(Display *d isplay, int screen)240 int MythXGetRefreshRate(Display *d, int screen) 241 241 { 242 Display *display = d; 242 243 if (!display) 244 display = MythXOpenDisplay(); 245 if (!display) 246 { 247 VERBOSE(VB_IMPORTANT, "MythXGetRefreshRate: " 248 "MythXOpenDisplay call failed"); 243 249 return -1; 250 } 244 251 252 X11L; 253 int scr = screen; 254 if (scr < 0) 255 scr = DefaultScreen(display); 256 X11U; 257 245 258 XF86VidModeModeLine mode_line; 246 259 int dot_clock; 247 260 248 261 int ret = False; 249 X11S(ret = XF86VidModeGetModeLine(display, scr een,262 X11S(ret = XF86VidModeGetModeLine(display, scr, 250 263 &dot_clock, &mode_line)); 251 264 if (!ret) 252 265 { -
libs/libmythui/util-x11.h
19 19 MPUBLIC QSize MythXGetDisplaySize( Display *d = NULL, int screen = -1); 20 20 MPUBLIC QSize MythXGetDisplayDimensions(Display *d = NULL, int screen = -1); 21 21 MPUBLIC double MythXGetPixelAspectRatio( Display *d = NULL, int screen = -1); 22 MPUBLIC int MythXGetRefreshRate( Display *d isplay, int screen);22 MPUBLIC int MythXGetRefreshRate( Display *d = NULL, int screen = -1); 23 23 #endif // USING_X11 24 24 25 25 MPUBLIC int GetNumberOfXineramaScreens();