From c135f85fcdc1eeedd04e0c9e9f626b907500f20a Mon Sep 17 00:00:00 2001 From: jacopo grandi Date: Fri, 19 Feb 2021 19:24:22 +0100 Subject: stabilized levels --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index eb8e458..4c5c9b4 100644 --- a/main.c +++ b/main.c @@ -210,7 +210,7 @@ int main( int argc, char* args[] ) { SDL_SetRenderDrawColor(rend, 255*sw, 255*(1-sw), 0, 255); SDL_RenderFillRect(rend, &hprect); - SDL_SetTextureColorMod(txsmall, 0, 100, 0); + SDL_SetTextureColorMod(txsmall, sw*100, 100*(1-sw), 0); char shp[32]; sprintf(shp, "%.0f", ar->us[i].hp); float php[2] = { (int)x-posx, (int)y-posy+ts-5 }; render_text_small(rend, shp, php, txsmall); -- cgit v1.2.3-54-g00ecf