Title says it all really. For retroremakes it would be helpful to support fullscreen at 320x200, 320x240 etc
or
Could you make windows scalable so that they can be dragged to any size on the desktop?
Do your graphics on a low resolution 3rd screen, then scale it to fullscreen.
Edit:
To be preciser:
- use CREATESCREEN screenID, spriteID, 320, 240 to create a virtual screen with the resolution of 320x240
- call SCREENSIZE screenX, screenY to get the current screen width and height
- before drawing your game stuff call USESCREEN screenID
- after drawing your game stuff call USESCREEN -1
- then call STRETCHSPRITE spriteID, 0, 0, screenX, screenY
Be happy with blocky retro graphics at FullHD :good:
Or draw your screen as normal, then call the following function instead of using SHOWSCREEN
GLOBAL platform$
platform$=PLATFORMINFO$("device")
IF platform$="DESKTOP" THEN SETSCREEN 640,480,1
// Scale screen
FUNCTION scale:
IF platform$="DESKTOP"
LOCAL temp% = GENSPRITE() // get temp image sprite slot
GRABSPRITE temp%,0,0,320,240 // grab to that sprite
SMOOTHSHADING FALSE
ZOOMSPRITE temp%,160,120,2,2 // stretch it
GRABSPRITE temp%,0,0,0,0 // delete temp image
ENDIF
SHOWSCREEN
ENDFUNCTION
Simples. :)
Ah - but which is quicker?
i think the first one