Fix C89_BUILD=1.

This commit is contained in:
orbea 2019-02-06 09:16:26 -08:00
parent f5343c83eb
commit 8ff0b14281
2 changed files with 8 additions and 9 deletions

View File

@ -20,7 +20,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h> #include <unistd.h>
#include <X11/Xlib.h> #include <X11/Xlib.h>
#include <X11/extensions/Xrandr.h> // run pkg-config --static --libs xrandr #include <X11/extensions/Xrandr.h> /* run pkg-config --static --libs xrandr */
#include <X11/extensions/randr.h> #include <X11/extensions/randr.h>
#include <X11/extensions/Xrender.h> #include <X11/extensions/Xrender.h>
@ -265,8 +265,8 @@ static bool x11_display_server_set_resolution(void *data,
if (monitor_index == 0) if (monitor_index == 0)
{ {
int i;
for (int i = 0; i < res->noutput; i++) for (i = 0; i < res->noutput; i++)
{ {
XRROutputInfo *outputs = XRRGetOutputInfo (dsp, res, res->outputs[i]); XRROutputInfo *outputs = XRRGetOutputInfo (dsp, res, res->outputs[i]);
@ -290,7 +290,6 @@ static bool x11_display_server_set_resolution(void *data,
} }
if (monitor_index > 0) if (monitor_index > 0)
{ {
XRROutputInfo *outputs = XRRGetOutputInfo (dsp, res, res->outputs[monitor_index]); XRROutputInfo *outputs = XRRGetOutputInfo (dsp, res, res->outputs[monitor_index]);
if (outputs->connection == RR_Connected) if (outputs->connection == RR_Connected)
{ {

View File

@ -38,7 +38,7 @@ enum xfvk_key
XFVK_FK11 = 95, XFVK_FK11 = 95,
XFVK_FK12 = 96, XFVK_FK12 = 96,
// Added for pc105 compatibility /* Added for pc105 compatibility */
XFVK_LSGT = 94, XFVK_LSGT = 94,
XFVK_TLDE = 49, XFVK_TLDE = 49,
XFVK_AE01 = 10, XFVK_AE01 = 10,
@ -105,10 +105,10 @@ enum xfvk_key
XFVK_RALT = 108, XFVK_RALT = 108,
XFVK_PRSC = 107, XFVK_PRSC = 107,
// SYRQ = 107, /* SYRQ = 107, */
XFVK_SCLK = 78, XFVK_SCLK = 78,
XFVK_PAUS = 127, XFVK_PAUS = 127,
// BRK = 419, /* BRK = 419, */
XFVK_INS = 118, XFVK_INS = 118,
XFVK_HOME = 110, XFVK_HOME = 110,
@ -145,13 +145,13 @@ enum xfvk_key
XFVK_KPDL = 91, XFVK_KPDL = 91,
XFVK_KPEQ = 125, XFVK_KPEQ = 125,
// Microsoft keyboard extra keys /* Microsoft keyboard extra keys */
XFVK_LWIN = 133, XFVK_LWIN = 133,
XFVK_RWIN = 134, XFVK_RWIN = 134,
XFVK_COMP = 135, XFVK_COMP = 135,
XFVK_MENU = XFVK_COMP, XFVK_MENU = XFVK_COMP,
// Extended keys /* Extended keys */
XFVK_CALC = 148, XFVK_CALC = 148,
XFVK_FK13 = 191, XFVK_FK13 = 191,