CREATESCREEN cant' exceed screen size

Previous topic - Next topic

flet

Tried to create a virtual screen with CREATESCREEN, with width = twice the real screen width, height = twice that of the real screen too.
When drawspriting the associated sprite to the back buffer (with x and y offset), the part of the virtual screen outside the boundaries of the real screen appears either empty or not properly dispalyed.
Target platform : WinCE.

flet

ALl right, source code:
Code (glbasic) Select
ALLOWESCAPE TRUE
CREATESCREEN 1, 1, 480, 480
USESCREEN 1
DRAWRECT 0, 0, 480, 480, RGB (255, 0, 0)
USESCREEN -1
DRAWSPRITE 1, -120, -120
SHOWSCREEN
WHILE TRUE
MOUSEWAIT
WEND
END
On a 240x240 PDA, the above code should make the entire screen red. It actually only draws a 120x120 red square in the top left corner of the screen.

flet

(and the close button doesn't work...) - Soft reset :-(

Kitty Hello

Yes, this is nt possible ATM. I'm trying to fix this, but it's quite some work. Sorry.

flet

OK.
Simply making it explicit in the doc would help a lot!

BTW : how do I save an image file larger than the screen size? Is it alos not possible ?
Thanks

Kitty Hello

no, not possible, too. With Savesprite when createsurface bigger screen works one day.