medfall

A super great game engine
Log | Files | Refs

commit 6945eaa60ea982902699966c701ef8712ef5c20c
parent 4b8a4d3433cae8cba233e6d71e57173b157d0abd
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Thu Aug 31 23:05:01 +0300

Warnings

Diffstat:
shadow_map.cc | 2+-
text_renderer.cc | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/shadow_map.cc b/shadow_map.cc @@ -174,7 +174,7 @@ GAME_FRAME( game_frame ) { { const str< 128 > status( "Frame time: {.1}ms FPS: {.1}", dt * 1000.0f, 1.0f / dt ); - draw_text( status.c_str(), 2.0f, 2.0f, 16.0f ); + draw_text( status.c_str(), 2, 2, 16 ); } renderer_end_pass(); diff --git a/text_renderer.cc b/text_renderer.cc @@ -74,8 +74,8 @@ void draw_text( const char * str, int x, int y, float pixel_size ) { float scale = pixel_size / sizes[ size_idx ].pixel_size; float ascent = sizes[ size_idx ].ascent * scale; - float left = x; - float top = y + ascent; + float left = float( x ); + float top = float( y ) + ascent; float fx = float( x ); float fy = float( y );