From 9d2e09feee3317ff56713265936591b876c9cbc2 Mon Sep 17 00:00:00 2001 From: Ragnvald Maartmann-Moe IV Date: Wed, 21 Aug 2002 05:59:00 +0000 Subject: [PATCH] Whitespace. --- libs/video/targets/in_x11.c | 5 ++--- libs/video/targets/vid_glx.c | 22 ++++++++-------------- 2 files changed, 10 insertions(+), 17 deletions(-) diff --git a/libs/video/targets/in_x11.c b/libs/video/targets/in_x11.c index b508b9417..d7a5ab789 100644 --- a/libs/video/targets/in_x11.c +++ b/libs/video/targets/in_x11.c @@ -157,7 +157,7 @@ selection_notify (XEvent *event) if (XGetWindowProperty (x_disp, x_win, property, 0, num_bytes, True, AnyPropertyType, &type, &format, &len, &tmp, &data) != Success) { - XFree (data); //FIXME is this correct for this instance? + XFree (data); // FIXME is this correct for this instance? return; } @@ -562,8 +562,7 @@ IN_LL_Ungrab_Input (void) void IN_LL_SendKeyEvents (void) { - // Get events from X server. - X11_ProcessEvents (); + X11_ProcessEvents (); // Get events from X server. } void diff --git a/libs/video/targets/vid_glx.c b/libs/video/targets/vid_glx.c index e1ceab1fb..d2a49b0d6 100644 --- a/libs/video/targets/vid_glx.c +++ b/libs/video/targets/vid_glx.c @@ -62,13 +62,13 @@ static const char rcsid[] = #include "compat.h" #include "context_x11.h" -#include "sbar.h" #include "r_cvar.h" +#include "sbar.h" #define WARP_WIDTH 320 #define WARP_HEIGHT 200 -/* GLXContext is a pointer to opaque data. */ +// GLXContext is a pointer to opaque data typedef struct __GLXcontextRec *GLXContext; #define GLX_RGBA 4 // true if RGBA mode @@ -88,8 +88,7 @@ GLXContext (* qfglXCreateContext) (Display *dpy, XVisualInfo *vis, Bool (* qfglXMakeCurrent) (Display *dpy, GLXDrawable drawable, GLXContext ctx); -/*-----------------------------------------------------------------------*/ - +// ============================================================================ #if defined(HAVE_DLOPEN) @@ -196,17 +195,16 @@ VID_Init (unsigned char *palette) "quake window in a virtual desktop.\n"); VID_GetWindowSize (640, 480); - Con_CheckResize (); // Now that we have a window size, fix console + Con_CheckResize (); // Now that we have a window size, fix console vid.maxwarpwidth = WARP_WIDTH; vid.maxwarpheight = WARP_HEIGHT; vid.colormap8 = vid_colormap; vid.fullbright = 256 - LittleLong (*((int *) vid.colormap8 + 2048)); - /* Interpret command-line params */ - - /* Set vid parameters */ + // Interpret command-line params + // Set vid parameters if ((i = COM_CheckParm ("-conwidth"))) vid.conwidth = atoi (com_argv[i + 1]); else @@ -218,8 +216,7 @@ VID_Init (unsigned char *palette) // pick a conheight that matches with correct aspect vid.conheight = vid.conwidth * 3 / 4; - if ((i = COM_CheckParm ("-conheight"))) // conheight no smaller than - // 200px + if ((i = COM_CheckParm ("-conheight"))) // conheight no smaller than 200p vid.conheight = atoi (com_argv[i + 1]); vid.conheight = max (vid.conheight, 200); @@ -233,8 +230,7 @@ VID_Init (unsigned char *palette) X11_SetVidMode (scr_width, scr_height); X11_CreateWindow (scr_width, scr_height); - /* Invisible cursor */ - X11_CreateNullCursor (); + X11_CreateNullCursor (); // hide mouse pointer XSync (x_disp, 0); @@ -248,8 +244,6 @@ VID_Init (unsigned char *palette) vid.aspect = ((float) vid.height / (float) vid.width) * (320.0 / 240.0); vid.numpages = 2; - // InitSig (); // trap evil signals - GL_Init (); VID_InitGamma (palette);