mirror of
https://git.code.sf.net/p/quake/quake2forge
synced 2024-11-13 00:24:46 +00:00
warnings fixes
This commit is contained in:
parent
fa367ae34d
commit
78ff46bd75
1 changed files with 3 additions and 7 deletions
|
@ -16,6 +16,7 @@
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
#include <sys/mman.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -43,7 +44,9 @@
|
||||||
static qboolean X11_active = false;
|
static qboolean X11_active = false;
|
||||||
|
|
||||||
static SDL_Surface *surface;
|
static SDL_Surface *surface;
|
||||||
|
#ifndef OPENGL
|
||||||
static int sdl_palettemode;
|
static int sdl_palettemode;
|
||||||
|
#endif
|
||||||
|
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
|
@ -76,15 +79,12 @@ static int mouse_x, mouse_y;
|
||||||
static int old_mouse_x, old_mouse_y;
|
static int old_mouse_x, old_mouse_y;
|
||||||
static int mx, my;
|
static int mx, my;
|
||||||
static float old_windowed_mouse;
|
static float old_windowed_mouse;
|
||||||
static int p_mouse_x, p_mouse_y;
|
|
||||||
|
|
||||||
static cvar_t *_windowed_mouse;
|
static cvar_t *_windowed_mouse;
|
||||||
static cvar_t *m_filter;
|
static cvar_t *m_filter;
|
||||||
static cvar_t *in_mouse;
|
static cvar_t *in_mouse;
|
||||||
|
|
||||||
static int blah1[65536*8];
|
|
||||||
static qboolean mlooking;
|
static qboolean mlooking;
|
||||||
static int blah2[65536*8];
|
|
||||||
|
|
||||||
// state struct passed in Init
|
// state struct passed in Init
|
||||||
static in_state_t *in_state;
|
static in_state_t *in_state;
|
||||||
|
@ -115,9 +115,6 @@ static void RW_IN_MLookUp (void)
|
||||||
|
|
||||||
void RW_IN_Init(in_state_t *in_state_p)
|
void RW_IN_Init(in_state_t *in_state_p)
|
||||||
{
|
{
|
||||||
int mtype;
|
|
||||||
int i;
|
|
||||||
|
|
||||||
in_state = in_state_p;
|
in_state = in_state_p;
|
||||||
|
|
||||||
// mouse variables
|
// mouse variables
|
||||||
|
@ -371,7 +368,6 @@ static unsigned char KeyStates[SDLK_LAST];
|
||||||
|
|
||||||
void GetEvent(SDL_Event *event)
|
void GetEvent(SDL_Event *event)
|
||||||
{
|
{
|
||||||
unsigned int bstate;
|
|
||||||
unsigned int key;
|
unsigned int key;
|
||||||
|
|
||||||
switch(event->type) {
|
switch(event->type) {
|
||||||
|
|
Loading…
Reference in a new issue