Createblankimage And Other
Posted 17 October 2004 - 07:20 PM
The thing is I cant get it to work like the DrawTarget.xas. Instead of a single icon I get a column of icons even when I copy one of the icon lines form the DrawTarget.xas. And sometimes the image is a screwy.
Some goes for CreateBlankImage. It keeps drawing abstract garbage rather then a blank image.
This is what made that image:
CreateBlankImage testimage 640 480
Set rot 45
SetFunc IsInput IQPeekMsgID
If# %IsInput% != "" Gosub InputHandler
Image testimage 0 0 640 480
Image testimage 300 220 100 100 %rot% -1 -1 -1 -1 50 50
If %MSG_ID% == "UI_BACK" Then
Add rot 2
Posted 18 October 2004 - 01:10 AM
However, I noticed similar behaviour with tetris for the new build, when using begindrawtarget:
I think the problem is that MXM doesn't clear pictures anymore when using begindrawtarget. I requested it to not clear the picture, but that was meant as another option.
There should be three options:
-Initialize to black (this was normal begindrawtarget)
-Initialize to transparent (this was 'usecurrent')
-Leave as is (this wasn't available before, you could call it 'continuedraw')
So it seems that MXM is doing #3 now, instead of #1, and since it doesn't clear the image, you see garbage. Try it out with tetris.
Posted 18 October 2004 - 02:57 AM
I'll scan that bit of code as soon as I can to figure out what is happening there.
Posted 20 October 2004 - 03:02 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users