white space

This commit is contained in:
Jeff Teunissen 2000-10-27 10:17:38 +00:00
parent e678502641
commit 0630268292
2 changed files with 20 additions and 20 deletions

View file

@ -4,10 +4,6 @@
general video driver functions general video driver functions
Copyright (C) 1996-1997 Id Software, Inc. Copyright (C) 1996-1997 Id Software, Inc.
Copyright (C) 1999-2000 contributors of the QuakeForge project
Copyright (C) 2000 Marcus Sundberg [mackan@stacken.kth.se]
Copyright (C) 1999,2000 contributors of the QuakeForge project
Please see the file "AUTHORS" for a list of contributors
This program is free software; you can redistribute it and/or This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License modify it under the terms of the GNU General Public License
@ -29,7 +25,7 @@
$Id$ $Id$
*/ */
#define _BSD
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
@ -46,7 +42,8 @@ int scr_width, scr_height;
cvar_t *vid_width; cvar_t *vid_width;
cvar_t *vid_height; cvar_t *vid_height;
void VID_GetWindowSize (int def_w, int def_h) void
VID_GetWindowSize (int def_w, int def_h)
{ {
int pnum; int pnum;

View file

@ -31,6 +31,7 @@
#endif #endif
#include <GL/gl.h> #include <GL/gl.h>
#ifdef HAVE_GL_GLEXT_H #ifdef HAVE_GL_GLEXT_H
#include <GL/glext.h> #include <GL/glext.h>
#endif #endif
@ -196,7 +197,9 @@ VID_SetPalette (unsigned char *palette)
r = ((i & 0x1F) << 3) + 4; r = ((i & 0x1F) << 3) + 4;
g = ((i & 0x03E0) >> 2) + 4; g = ((i & 0x03E0) >> 2) + 4;
b = ((i & 0x7C00) >> 7) + 4; b = ((i & 0x7C00) >> 7) + 4;
pal = (unsigned char *) d_8to24table; pal = (unsigned char *) d_8to24table;
for (v=0, k=0, bestdist = 10000.0; v<256; v++,pal+=4) { for (v=0, k=0, bestdist = 10000.0; v<256; v++,pal+=4) {
r1 = (int)r - (int)pal[0]; r1 = (int)r - (int)pal[0];
g1 = (int)g - (int)pal[1]; g1 = (int)g - (int)pal[1];