remove references to SDL_GetModState();
changed word Key_modifiers(SDLMod mod); to word Get_Key_modifiers(void);
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user