aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorjacopo grandi <jak.sk8@hotmail.it>2021-02-19 19:24:22 +0100
committerjacopo grandi <jak.sk8@hotmail.it>2021-02-19 19:24:22 +0100
commitc135f85fcdc1eeedd04e0c9e9f626b907500f20a (patch)
tree942ed9fe531361c001da958860ce9d156a0a6876 /main.c
parent5126638d46398579c26d3c7bd908fe17b8508b13 (diff)
stabilized levels
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
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);