source/Platform/Unix: Rename XRandR to Xrandr
This commit is contained in:
parent
ca46bd0ef7
commit
f71fdea463
5 changed files with 11 additions and 11 deletions
|
|
@ -3,7 +3,7 @@
|
|||
#include <Spectre/System/Log.h>
|
||||
#include <Spectre/Graphics/Image.h>
|
||||
#include <X11/Xatom.h>
|
||||
#include "XRandR.h"
|
||||
#include "Xrandr.h"
|
||||
#include "X11WindowEventHandler.h"
|
||||
#include "Xlib.h"
|
||||
#include "wm_hints.h"
|
||||
|
|
@ -240,7 +240,7 @@ void X11Window::maximize()
|
|||
|
||||
void X11Window::enterFullscreen(DisplayMode mode)
|
||||
{
|
||||
if (!XRandR::FindMode(Xlib::getDisplay(), mode.width, mode.height, mode.bpp, &m_fullscreen_mode.size, &m_fullscreen_mode.rate)) {
|
||||
if (!Xrandr::FindMode(Xlib::getDisplay(), mode.width, mode.height, mode.bpp, &m_fullscreen_mode.size, &m_fullscreen_mode.rate)) {
|
||||
Log::warn("X11: Failed to find a mode");
|
||||
return;
|
||||
}
|
||||
|
|
@ -253,7 +253,7 @@ void X11Window::toggleFullscreen(bool enable)
|
|||
::Display* disp = Xlib::getDisplay();
|
||||
::Window root;
|
||||
::XRRScreenConfiguration *conf;
|
||||
XRandR::VideoMode *mode = &m_desktop_mode;
|
||||
Xrandr::VideoMode *mode = &m_desktop_mode;
|
||||
|
||||
root = RootWindow(disp, 0);
|
||||
conf = XRRGetScreenInfo(disp, root);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue