mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-09-24 07:45:21 +00:00
No longer needed.
This commit is contained in:
@@ -11,8 +11,6 @@
|
||||
# include "../common/acs437.h"
|
||||
#endif
|
||||
|
||||
Uint32 pdc_lastupdate = 0;
|
||||
|
||||
#define MAXRECT 200 /* maximum number of rects to queue up before
|
||||
an update is forced; the number was chosen
|
||||
arbitrarily */
|
||||
@@ -37,7 +35,6 @@ void PDC_update_rects(void)
|
||||
else
|
||||
SDL_UpdateRects(pdc_screen, rectcount, uprect);
|
||||
|
||||
pdc_lastupdate = SDL_GetTicks();
|
||||
rectcount = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,16 +81,8 @@ void PDC_set_keyboard_binary(bool on)
|
||||
|
||||
bool PDC_check_key(void)
|
||||
{
|
||||
Uint32 current = SDL_GetTicks();
|
||||
int haveevent = SDL_PollEvent(&event);
|
||||
|
||||
/* if we have an event, or 30 ms have passed without a screen
|
||||
update, or the timer has wrapped, update now */
|
||||
|
||||
if (haveevent ||
|
||||
current < pdc_lastupdate || ((current - pdc_lastupdate) > 30))
|
||||
PDC_update_rects();
|
||||
|
||||
return haveevent;
|
||||
}
|
||||
|
||||
|
||||
@@ -27,7 +27,6 @@ extern int pdc_flastc; /* font palette's last color
|
||||
extern bool pdc_own_screen; /* if pdc_screen was not set
|
||||
before initscr(), PDCurses is
|
||||
responsible for (owns) it */
|
||||
extern Uint32 pdc_lastupdate; /* time of last update, in ticks */
|
||||
|
||||
PDCEX void PDC_update_rects(void);
|
||||
PDCEX void PDC_retile(void);
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
# include "../common/acs437.h"
|
||||
#endif
|
||||
|
||||
Uint32 pdc_lastupdate = 0;
|
||||
|
||||
#define MAXRECT 200 /* maximum number of rects to queue up before
|
||||
an update is forced; the number was chosen
|
||||
arbitrarily */
|
||||
@@ -68,7 +66,6 @@ void PDC_update_rects(void)
|
||||
SDL_UpdateWindowSurfaceRects(pdc_window, uprect, rectcount);
|
||||
}
|
||||
|
||||
pdc_lastupdate = SDL_GetTicks();
|
||||
rectcount = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,7 +81,6 @@ void PDC_set_keyboard_binary(bool on)
|
||||
|
||||
bool PDC_check_key(void)
|
||||
{
|
||||
Uint32 current = SDL_GetTicks();
|
||||
int haveevent;
|
||||
|
||||
/**
|
||||
@@ -93,13 +92,6 @@ bool PDC_check_key(void)
|
||||
haveevent = 1;
|
||||
else haveevent = SDL_PollEvent(&event);
|
||||
|
||||
/* if we have an event, or 30 ms have passed without a screen
|
||||
update, or the timer has wrapped, update now */
|
||||
|
||||
if (haveevent ||
|
||||
current < pdc_lastupdate || ((current - pdc_lastupdate) > 30))
|
||||
PDC_update_rects();
|
||||
|
||||
return haveevent;
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +28,6 @@ extern int pdc_flastc; /* font palette's last color
|
||||
extern bool pdc_own_window; /* if pdc_window was not set
|
||||
before initscr(), PDCurses is
|
||||
responsible for (owns) it */
|
||||
extern Uint32 pdc_lastupdate; /* time of last update, in ticks */
|
||||
|
||||
PDCEX void PDC_update_rects(void);
|
||||
PDCEX void PDC_retile(void);
|
||||
|
||||
Reference in New Issue
Block a user