From 27a7d334931514e4ca4fabe8eef7d47495c68301 Mon Sep 17 00:00:00 2001 From: drumsetmonkey Date: Tue, 22 Nov 2016 22:42:34 -0500 Subject: Black bars if world is smaller than screen (messy) --- main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 1076903..4d14190 100644 --- a/main.cpp +++ b/main.cpp @@ -320,9 +320,11 @@ void render() { if (ui::debug) { auto pos = game::engine.getSystem()->getPosition(); ui::putText(offset.x-SCREEN_WIDTH/2, (offset.y+SCREEN_HEIGHT/2)-ui::fontSize, - "loc: (%+.2f, %+.2f)\nticks: %u\nxml: %s", + "loc: (%+.2f, %+.2f)\noffset: (%+.2f, %+.2f)\nticks: %u\nxml: %s", pos.x, pos.y, + offset.x, + offset.y, game::time::getTickCount(), game::engine.getSystem()->getXMLFile().c_str() ); -- cgit v1.2.3