aboutsummaryrefslogtreecommitdiff
path: root/AmpelJonas/cObjectHandler.cpp
diff options
context:
space:
mode:
authorGravatar jonas <himself@jonasgunz.de> 2018-12-14 18:46:22 +0100
committerGravatar jonas <himself@jonasgunz.de> 2018-12-14 18:46:22 +0100
commit79deae78d89757b3e1a53b5d990c28cc70d4175d (patch)
tree32ae7a308961b6aa21c63bd97d6c38341388117f /AmpelJonas/cObjectHandler.cpp
parent2da23ea7be6dd20da8d7319da4db69ff9688b9e6 (diff)
downloadtermgl-79deae78d89757b3e1a53b5d990c28cc70d4175d.tar.gz
Performance improvements to cRender::render() by only drawing changed pixels
NON-Working
Diffstat (limited to 'AmpelJonas/cObjectHandler.cpp')
-rw-r--r--AmpelJonas/cObjectHandler.cpp6
1 files changed, 3 insertions, 3 deletions
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
+}