Canvas size limited to 1024x768 ?

BlitzMax Forums/BlitzMax Beginners Area/Canvas size limited to 1024x768 ?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Canvas size seems limited to 1024x768 ?
Try this :

Const WWX = 1024
Const WWY = 768

Const W = 2048 ' Canvas Size work only with
Const H = 1024  ' W=1024 and H=768

Local window:TGadget=CreateWindow("",0,0,WWX,WWY, Null, WINDOW_MENU|WINDOW_TITLEBAR)
Local panel:Tgadget = CreatePanel(10,10,WWX-40,WWY-80,window,PANEL_ACTIVE)

Global canvas:TGadget=CreateCanvas(0,0,W,H,panel)


While WaitEvent()
	Select EventID()
		Case EVENT_TIMERTICK
			RedrawGadget canvas

		Case EVENT_GADGETPAINT
			SetGraphics CanvasGraphics(canvas)
			Cls
			SetColor 255,255,255
			'...
			Flip
			
		Case EVENT_WINDOWCLOSE
				FreeGadget canvas
				End

		Case EVENT_APPTERMINATE
			End
	End Select

Wend