1 /***************************************************************************
2 vidmode.h - video mode switching
4 begin : Tue June 3 03:11:00 CET 2002
5 copyright : (C) 2002 by Tim Jansen
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 ***************************************************************************/
22 Resolution(int w
, int h
, int s
) :
23 valid(true), width(w
), height(h
), screen(s
) {
26 valid(false), width(0), height(0), screen(0) {
34 void vidmodeNormalSwitch(Display
*dpy
, Resolution oldResolution
);
35 Resolution
vidmodeFullscreenSwitch(Display
*dpy
, int screen
, int sw
, int sh
, int &nx
, int &ny
);
37 void grabInput(Display
*dpy
, unsigned int winId
);
38 void ungrabInput(Display
*dpy
);