From 79deae78d89757b3e1a53b5d990c28cc70d4175d Mon Sep 17 00:00:00 2001 From: jonas Date: Fri, 14 Dec 2018 18:46:22 +0100 Subject: Performance improvements to cRender::render() by only drawing changed pixels NON-Working --- AmpelJonas/cObjectHandler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'AmpelJonas/cObjectHandler.cpp') diff --git a/AmpelJonas/cObjectHandler.cpp b/AmpelJonas/cObjectHandler.cpp index a5c5884..d35653a 100644 --- a/AmpelJonas/cObjectHandler.cpp +++ b/AmpelJonas/cObjectHandler.cpp @@ -13,7 +13,7 @@ int cObjectHandler::createObject(cObject *_object) int cObjectHandler::moveObject(int _object, sPos _pos, int _mode) { - if (_object >= objects.size()) //prevent segmentation faults + if (_object >= objects.size()) //prevent segmentation faults return 1; if (!objects[_object]) @@ -41,7 +41,7 @@ int cObjectHandler::write() { render->clear(); - for (int i = 0; i < objects.size(); i++) + for (unsigned long int i = 0; i < objects.size(); i++) { if (objects[i]) // Check if objects[i] is existent { @@ -60,4 +60,4 @@ int cObjectHandler::write() } return 0; -} \ No newline at end of file +} -- cgit v1.2.3