Kaynağa Gözat

Fixed a too big alloc in pixmap.

Mark Sibly 9 yıl önce
ebeveyn
işleme
d0974cf061
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      modules/std/graphics/pixmap.monkey2

+ 1 - 1
modules/std/graphics/pixmap.monkey2

@@ -27,7 +27,7 @@ Class Pixmap
 
 		Local depth:=PixelFormatDepth( format )
 		Local pitch:=width*depth
-		Local data:=Cast<UByte Ptr>( libc.malloc( width*height*pitch ) )
+		Local data:=Cast<UByte Ptr>( libc.malloc( pitch*height ) )
 		
 		_width=width
 		_height=height