mirror of
https://github.com/gryf/wmaker.git
synced 2026-03-04 15:55:53 +01:00
util: Fix wmagnify
wmagnify stopped working after f65b99e615 ("Remove warnings").
So revert that change in util/wmagnify.c, as it turns out that the
gcc warning was bogus there.
This commit is contained in:
@@ -397,6 +397,7 @@ static BufferData *newWindow(int magfactor)
|
|||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
BufferData *data;
|
||||||
int i;
|
int i;
|
||||||
char *display = "";
|
char *display = "";
|
||||||
char *vdisplay = NULL;
|
char *vdisplay = NULL;
|
||||||
@@ -480,6 +481,8 @@ int main(int argc, char **argv)
|
|||||||
cursorColor1 = WMCreateNamedColor(scr, "#ff0000", False);
|
cursorColor1 = WMCreateNamedColor(scr, "#ff0000", False);
|
||||||
cursorColor2 = WMCreateNamedColor(scr, "#00ff00", False);
|
cursorColor2 = WMCreateNamedColor(scr, "#00ff00", False);
|
||||||
|
|
||||||
|
data = newWindow(magfactor);
|
||||||
|
|
||||||
WMScreenMainLoop(scr);
|
WMScreenMainLoop(scr);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user