mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Enable fullscreen switching with resolution mode changing using Xrandr in linux.
This changes the dependency in linux from libxxf86vm-dev to libxrandr-dev. Use Alt-Return to toggle fullscreen mode (as in windows). git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5065 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -75,9 +75,9 @@
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/Xutil.h>
|
||||
#include <X11/keysym.h>
|
||||
#if defined(HAVE_XXF86VM) && HAVE_XXF86VM
|
||||
#include <X11/extensions/xf86vmode.h>
|
||||
#endif // XXF86VM
|
||||
#if defined(HAVE_XRANDR) && HAVE_XRANDR
|
||||
#include <X11/extensions/Xrandr.h>
|
||||
#endif // XRANDR
|
||||
#endif // X11
|
||||
|
||||
#include <sys/stat.h>
|
||||
@ -95,9 +95,11 @@ typedef struct {
|
||||
XSetWindowAttributes attr;
|
||||
Bool fs;
|
||||
Bool doubleBuffered;
|
||||
#if defined(HAVE_XXF86VM) && HAVE_XXF86VM
|
||||
XF86VidModeModeInfo deskMode;
|
||||
#endif // XXF86VM
|
||||
#if defined(HAVE_XRANDR) && HAVE_XRANDR
|
||||
XRRScreenConfiguration *screenConfig;
|
||||
Rotation screenRotation;
|
||||
int deskSize;
|
||||
#endif // XRANDR
|
||||
#endif // X11
|
||||
#if defined(USE_WX) && USE_WX
|
||||
wxGLCanvas *glCanvas;
|
||||
|
Reference in New Issue
Block a user