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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user