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:
parent
1a58c9c8ba
commit
28ab24cd55
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue