Pixmap coordinates out of bounds

BlitzMax Forums/BlitzMax Programming/Pixmap coordinates out of bounds

Robert Cummings(Posted 2006) [#1]
Is there something we should be aware of? This only occurs when OpenGL is the renderer. It works fine with DirectX.

				For Local i:Int = 0 To num - 1
				
					Local x:Int = f.table[i].rectX
					Local y:Int = f.table[i].rectY
					Local w:Int = f.table[i].rectW
					Local h:Int = f.table[i].rectH
					
					Local pixmap:TPixmap = PixmapWindow( temp , x , y , w , h )
					f.image[i] = LoadImage( pixmap )
					DrawImage f.image[i],0,0
								
				Next	


This is part of some code that loads a bitmap and grabs a series of frames for use as memory. I find its very unreliable also.


Robert Cummings(Posted 2006) [#2]
Oh yeah - The debugger will not catch the out of bounds error under directx.


skidracer(Posted 2006) [#3]
Not enough information sorry.


Dreamora(Posted 2006) [#4]
Sure it is not catched? (sure you are not using framework and missed to include the needed module to check array bounds at all)


Grisu(Posted 2006) [#5]
"When posting bug reports, please:

1) Include some *runnable* source code in your post - not just the bit in your code that's failing, but something we can actually copy and paste into the IDE and run immediately."


Robert Cummings(Posted 2006) [#6]
Trying...

Just to verify, pixmapwindow creates a new pixmap? and this is a valid technique for making more images?


skidracer(Posted 2006) [#7]
Hmmm, may have to start deleting threads when topic already exists.