# HG changeset patch # User spq@33b003aa-7bff-0310-803a-e67f0ece8222 # Date 1215866131 0 # Node ID 4e68022ed545b0513c9793e6f6dd792908ca71af # Parent 38232a42ff8dda9c1643bb9661fd0dba0a1d0309 fix some pixels wrongly highlighted in outlines diff -r 38232a42ff8d -r 4e68022ed545 engine/core/view/renderers/instancerenderer.cpp --- a/engine/core/view/renderers/instancerenderer.cpp Sat Jul 12 12:30:31 2008 +0000 +++ b/engine/core/view/renderers/instancerenderer.cpp Sat Jul 12 12:35:31 2008 +0000 @@ -177,10 +177,10 @@ // TODO: optimize... uint8_t r, g, b, a = 0; - int prev_a = a; // vertical sweep for (unsigned int x = 0; x < img->getWidth(); x ++) { + uint8_t prev_a = 0; for (unsigned int y = 0; y < img->getHeight(); y ++) { vc.image->getPixelRGBA(x, y, &r, &g, &b, &a); if ((a == 0 || prev_a == 0) && (a != prev_a)) { @@ -199,6 +199,7 @@ } // horizontal sweep for (unsigned int y = 0; y < img->getHeight(); y ++) { + uint8_t prev_a = 0; for (unsigned int x = 0; x < img->getWidth(); x ++) { vc.image->getPixelRGBA(x, y, &r, &g, &b, &a); if ((a == 0 || prev_a == 0) && (a != prev_a)) {