Author Topic: CREATESCREEN cant' exceed screen size  (Read 3442 times)

flet

  • Guest
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

  • Guest
CREATESCREEN cant' exceed screen size
« Reply #1 on: 2008-Jan-21 »
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

  • Guest
CREATESCREEN cant' exceed screen size
« Reply #2 on: 2008-Jan-21 »
(and the close button doesn't work...) - Soft reset :-(

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10760
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
CREATESCREEN cant' exceed screen size
« Reply #3 on: 2008-Jan-22 »
Yes, this is nt possible ATM. I'm trying to fix this, but it's quite some work. Sorry.

flet

  • Guest
CREATESCREEN cant' exceed screen size
« Reply #4 on: 2008-Jan-22 »
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

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10760
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
CREATESCREEN cant' exceed screen size
« Reply #5 on: 2008-Jan-22 »
no, not possible, too. With Savesprite when createsurface bigger screen works one day.