Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Fonts/GlyphTextureAlphabet.cpp @ 1624:59f95b9ea858
fix build
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 06 Nov 2020 17:30:36 +0100 |
parents | 8563ea5d8ae4 |
children | 9ac2a65d4172 |
comparison
equal
deleted
inserted
replaced
1623:74be0f498b08 | 1624:59f95b9ea858 |
---|---|
155 texture_->GetRegion(target, x, y, source.GetWidth(), source.GetHeight()); | 155 texture_->GetRegion(target, x, y, source.GetWidth(), source.GetHeight()); |
156 } | 156 } |
157 | 157 |
158 //Orthanc::ImageProcessing::Copy(target, bitmap->GetBitmap()); | 158 //Orthanc::ImageProcessing::Copy(target, bitmap->GetBitmap()); |
159 | 159 |
160 for (unsigned int y = 0; y < source.GetHeight(); y++) | 160 const unsigned int width = source.GetWidth(); |
161 const unsigned int height = source.GetHeight(); | |
162 | |
163 for (unsigned int y = 0; y < height; y++) | |
161 { | 164 { |
162 const uint8_t* p = reinterpret_cast<const uint8_t*>(source.GetConstRow(y)); | 165 const uint8_t* p = reinterpret_cast<const uint8_t*>(source.GetConstRow(y)); |
163 uint8_t* q = reinterpret_cast<uint8_t*>(target.GetRow(y)); | 166 uint8_t* q = reinterpret_cast<uint8_t*>(target.GetRow(y)); |
164 | 167 |
165 for (unsigned int x = 0; x < source.GetWidth(); x++) | 168 for (unsigned int x = 0; x < width; x++) |
166 { | 169 { |
167 // Premultiplied alpha | 170 // Premultiplied alpha |
168 q[0] = 0; | 171 q[0] = 0; |
169 q[1] = 0; | 172 q[1] = 0; |
170 q[2] = 0; | 173 q[2] = 0; |