Add missing wxUSE_DISPLAY check to X11 display header

Don't define functions dealing with video modes etc when
wxUSE_DISPLAY==0.
This commit is contained in:
Vadim Zeitlin
2018-10-09 15:28:28 +02:00
parent 1a58c9c8ba
commit 28ab24cd55

View File

@@ -10,6 +10,10 @@
#ifndef _WX_UNIX_PRIVATE_DISPLAYX11_H_
#define _WX_UNIX_PRIVATE_DISPLAYX11_H_
#include "wx/defs.h"
#if wxUSE_DISPLAY
#include "wx/log.h"
#include "wx/translation.h"
@@ -145,6 +149,8 @@ wxArrayVideoModes wxX11_GetModes(const wxDisplayImpl* impl, const wxVideoMode& m
#endif // !HAVE_X11_EXTENSIONS_XF86VMODE_H
#endif // wxUSE_DISPLAY
void wxGetWorkAreaX11(Screen* screen, int& x, int& y, int& width, int& height)
{
Display* display = DisplayOfScreen(screen);