My CreateDisplay failing in AOS3.

Discuss any general programming issues here
Post Reply
Bugala
Posts: 1390
Joined: Sun Feb 14, 2010 7:11 pm

My CreateDisplay failing in AOS3.

Post 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.
User avatar
jPV
Posts: 734
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

Re: My CreateDisplay failing in AOS3.

Post 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.
Bugala
Posts: 1390
Joined: Sun Feb 14, 2010 7:11 pm

Re: My CreateDisplay failing in AOS3.

Post by Bugala »

Yeah, didnt expect it to get any speed, but figured it should have anyway started.
plouf
Posts: 666
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: My CreateDisplay failing in AOS3.

Post 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()
Christos
Post Reply