diff options
| author | manuel <manuel@nc8430.lan> | 2009-05-01 20:33:33 +0200 |
|---|---|---|
| committer | manuel <manuel@nc8430.lan> | 2009-05-01 20:33:33 +0200 |
| commit | bca08c6de2b156cbec90944c809e5e7faecd231d (patch) | |
| tree | d544ced2a8eb082cf1f393eb524519884909ed6d /ue2/imgsynth2/cbitmap.cpp | |
| parent | b9ce1555b2baf9be209775dbd4c8b217db5cd735 (diff) | |
| download | ooprog-bca08c6de2b156cbec90944c809e5e7faecd231d.tar.gz ooprog-bca08c6de2b156cbec90944c809e5e7faecd231d.tar.bz2 ooprog-bca08c6de2b156cbec90944c809e5e7faecd231d.zip | |
cwindowsbitmap: seek to bitmap data
cpixmap: use copy() instead of accessing array via indices
Diffstat (limited to 'ue2/imgsynth2/cbitmap.cpp')
| -rw-r--r-- | ue2/imgsynth2/cbitmap.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ue2/imgsynth2/cbitmap.cpp b/ue2/imgsynth2/cbitmap.cpp index c2cd99a..2e135db 100644 --- a/ue2/imgsynth2/cbitmap.cpp +++ b/ue2/imgsynth2/cbitmap.cpp | |||
| @@ -105,6 +105,7 @@ void CBitmap::fillrect(std::list<std::string> params) | |||
| 105 | pixel.blue = pparams[6]; | 105 | pixel.blue = pparams[6]; |
| 106 | 106 | ||
| 107 | /* call setPixel for every pixel in the rectangel */ | 107 | /* call setPixel for every pixel in the rectangel */ |
| 108 | /* NOTE: maybe use fill() here? */ | ||
| 108 | for(uint32_t i = pparams[0]; i < pparams[2] + pparams[0]; i++) | 109 | for(uint32_t i = pparams[0]; i < pparams[2] + pparams[0]; i++) |
| 109 | { | 110 | { |
| 110 | for(uint32_t j = pparams[1]; j < pparams[3] + pparams[1]; j++) | 111 | for(uint32_t j = pparams[1]; j < pparams[3] + pparams[1]; j++) |
