projects
/
glBitmap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40c2e1a
)
* fixed bug: buffer overflow when exporting TGA files
author
Bergmann89
<bergmann89@muo-game.de>
Tue, 22 Oct 2013 15:28:34 +0000
(17:28 +0200)
committer
Bergmann89
<bergmann89@muo-game.de>
Tue, 22 Oct 2013 15:28:34 +0000
(17:28 +0200)
glBitmap.pas
patch
|
blob
|
history
diff --git
a/glBitmap.pas
b/glBitmap.pas
index
1198bda
..
0641898
100644
(file)
--- a/
glBitmap.pas
+++ b/
glBitmap.pas
@@
-4630,7
+4630,7
@@
var
begin
PixelSize := fPixelSize;
- for Idx :=
0
to Height * Width do begin
+ for Idx :=
1
to Height * Width do begin
Temp := pByteArray(pTemp)^[2];
pByteArray(pTemp)^[2] := pByteArray(pTemp)^[0];
pByteArray(pTemp)^[0] := Temp;