change the zoom to have a key-pressed effect

This commit is contained in:
Gwenhael Le Moine 2023-09-13 15:58:20 +02:00
parent 9d81721c57
commit 8c40f4fdbf
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -2181,14 +2181,14 @@ unsigned SDLBGRA2ARGB( unsigned color ) {
// State to displayed zoomed last pressed key
SDL_Surface* showkeylastsurf = 0;
int showkeylastx, showkeylasty, showkeylastkey;
// Show the hp key which is being pressed
void SDLUIShowKey( int hpkey ) {
SDL_Rect /* rect, */ srect, drect;
SDL_Surface *ssurf, *zsurf;
int x;
int y;
// double zoomfactor = 1.5;
double zoomfactor = 3;
double zoomfactor = 0.9;
// If we're called with the same key as before, do nothing
if ( showkeylastkey == hpkey )