No longer needed.

This commit is contained in:
William McBrine
2019-09-10 17:54:29 -04:00
parent 6f25ffc884
commit 264e1336eb
6 changed files with 0 additions and 24 deletions

View File

@@ -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;
}
}

View File

@@ -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;
}

View File

@@ -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);

View File

@@ -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;
}
}

View File

@@ -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;
}

View File

@@ -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);