int dot;
XF86VidModeModeLine mode;
- if (XF86VidModeGetModeLine(ob_display, ob_screen, &dot, &mode)) {
+ if (extensions_vidmode &&
+ XF86VidModeGetModeLine(ob_display, ob_screen, &dot, &mode)) {
w = mode.hdisplay;
h = mode.vdisplay;
if (mode.privsize) XFree(mode.private);
#endif
#ifdef VIDMODE
}
- if (!XF86VidModeGetViewPort(ob_display, ob_screen, &x, &y)) {
+ if (!(extensions_vidmode &&
+ XF86VidModeGetViewPort(ob_display, ob_screen, &x, &y))) {
x = y = 0;
#endif
}