Merge pull request #250 from bmiklautz/no_xdamage_build_fix

xfreerdp-server: fix compilation when xdamage is disabled
This commit is contained in:
Marc-André Moreau 2011-12-05 08:46:12 -08:00
commit 806df4aea4

View File

@ -47,8 +47,10 @@ xfInfo* xf_info_init()
xfInfo* xfi;
int pf_count;
int vi_count;
#ifdef WITH_XDAMAGE
int damage_event;
int damage_error;
#endif
XVisualInfo* vi;
XVisualInfo* vis;
XVisualInfo template;
@ -121,7 +123,9 @@ xfInfo* xf_info_init()
xfi->clrconv->alpha = 1;
XSelectInput(xfi->display, DefaultRootWindow(xfi->display), SubstructureNotifyMask);
#ifdef WITH_XDAMAGE
XDamageQueryExtension(xfi->display, &damage_event, &damage_error);
#endif
return xfi;
}