Hello together,
Testcode:
Problem:
My display has a resolution of 1280x1024, when i draw the window with my code in 1024x768 everything is fine.
When i change my displays resolution to 1024x768 and draw the window, the oval is an egg :-(
The geometry of the canvas seems to be wrong, when display and window resolution are the same.
Where is my fault, and how can i solve the problem?
Thanx in advance
Testcode:
window = CreateWindow("",0,0,1024,768,0,5) canvas = CreateCanvas(0,0,1280,1280,window) SetBuffer CanvasBuffer(canvas) Oval 50,50,500,500,1 SetGadgetShape canvas,0,0,1024,1024 While WaitEvent(1)<>$803 And KeyHit(1)=0 Wend End
Problem:
My display has a resolution of 1280x1024, when i draw the window with my code in 1024x768 everything is fine.
When i change my displays resolution to 1024x768 and draw the window, the oval is an egg :-(
The geometry of the canvas seems to be wrong, when display and window resolution are the same.
Where is my fault, and how can i solve the problem?
Thanx in advance