Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/WolfireGames/overgrowth.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Graphics/text.cpp')
-rw-r--r--Source/Graphics/text.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Graphics/text.cpp b/Source/Graphics/text.cpp
index ac743fae..748aeb33 100644
--- a/Source/Graphics/text.cpp
+++ b/Source/Graphics/text.cpp
@@ -158,8 +158,8 @@ void TextCanvas::GetBGRA( MemoryBlock *mem_to_fill ) {
}
void TextCanvas::Clear() {
- for(unsigned i=0, len=pixels_.size(); i<len; ++i){
- pixels_[i] = 0;
+ for(unsigned char & pixel : pixels_){
+ pixel = 0;
}
}