remove references to SDL_GetModState();

changed
word Key_modifiers(SDLMod mod);
to
word Get_Key_modifiers(void);
This commit is contained in:
Thomas Bernard
2018-06-11 00:46:14 +02:00
parent 7f1a747d1e
commit bf29a6837c
7 changed files with 23 additions and 34 deletions

View File

@@ -39,6 +39,7 @@
#include "input.h"
#include "special.h"
#include "tiles.h"
#include "keyboard.h"
// PI is NOT part of math.h according to C standards...
#if defined(__GP2X__) || defined(__VBCC__)
@@ -520,10 +521,8 @@ void Line_12_5(void)
cursor_y = Paintbrush_Y;
// On corrige les coordonnées de la ligne si la touche shift est appuyée...
#if defined(USE_SDL) || defined(USE_SDL2)
if(SDL_GetModState() & KMOD_SHIFT)
if(Get_Key_modifiers() & MOD_SHIFT)
Clamp_coordinates_regular_angle(start_x,start_y,&cursor_x,&cursor_y);
#endif
// On vient de bouger
if ((cursor_x!=end_x) || (cursor_y!=end_y))
@@ -3808,10 +3807,8 @@ void Grad_rectangle_12_9(void)
cursor_x = Paintbrush_X;
cursor_y = Paintbrush_Y;
// On corrige les coordonnées de la ligne si la touche shift est appuyée...
#if defined(USE_SDL) || defined(USE_SDL2)
if(SDL_GetModState() & KMOD_SHIFT)
if(Get_Key_modifiers() & MOD_SHIFT)
Clamp_coordinates_regular_angle(start_x,start_y,&cursor_x,&cursor_y);
#endif
if ((cursor_x!=end_x) || (cursor_y!=end_y))
{