Page 1 of 1

My CreateDisplay failing in AOS3.

Posted: Mon Dec 02, 2024 10:59 am
by Bugala

Code: Select all

CreateDisplay(0, {Width=1920, Height=1080, Mode="SystemScale", ScaleMode=#SCALEMODE_AUTO, Smoothscale=True, FitScale=True, KeepProportions=True, sizeable=True})
OpenDisplay(0)
One reporting said that he tried to open the AOS3.exe in 1920x1080 16-bit screenmode (I suppose in emulator)

Why does this line fail? I assumed using SystemScale and #ScaleMode_Auto would have made it to basically work always.

Re: My CreateDisplay failing in AOS3.

Posted: Mon Dec 02, 2024 12:41 pm
by jPV
Isn't SystemScale more for scaling up on high-dpi monitors? And is there any way to detect dpi settings on AmigaOS anyway so could that mode even work on Amigas in theory?

You should also have a pretty hefty Amiga to run any scaled content... maybe some emulated setups could do it, but I don't think any real Amigas could scale anything in acceptable speed. Especially that insane resolution :) And we should know the exact setup he tried it.. a 1920x1080x16bit screen takes about 4MB graphics memory alone, so it might run out of mem if the setup has a graphics card with about that much or less memory.

Re: My CreateDisplay failing in AOS3.

Posted: Mon Dec 02, 2024 2:39 pm
by Bugala
Yeah, didnt expect it to get any speed, but figured it should have anyway started.

Re: My CreateDisplay failing in AOS3.

Posted: Mon Dec 02, 2024 6:43 pm
by plouf
have you try it ?

i try this in winuae os3 and opens

Code: Select all

CreateDisplay(3, {Width=1920, Height=1080, Mode="SystemScale", ScaleMode=#SCALEMODE_AUTO, Smoothscale=True, FitScale=True, KeepProportions=True, sizeable=True})
OpenDisplay(3)
SelectDisplay(3)
BeginDoubleBuffer()

Cls(#GREEN)
SetFontColor(#YELLOW)

For i=0 To 1080 Step 20
	Line(0,i,1920,i)
	TextOut(0,i,StrStr(i))
Next 

For i=0 To 1920 Step 20
	Line(i,0,i,1080)
	TextOut(i,(i/20)*10,StrStr(i))
Next

Flip()
WaitLeftMouse()