Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
145 user(s) are online (130 user(s) are browsing Forums)

Members: 0
Guests: 145

more...

Support us!

Headlines

 
  Register To Post  

BestModeIDTags() always 640*480
Supreme Council
Supreme Council


See User information
Hello.

I'm trying to open a 800*600 screen using:
OpenScreenTags()
or
P96OpenScreenTags()

Neither is able to return anything but a 640*480 screen regardless of what values I set (P96)SA_Width, (P96)SA_Height to.

I tried to use BestModeIDTags() / P96BestModeIDTags() to get a 800*600 mode, but neither returns anything but a 640*480 one.

If I use ranger to retrieve a 800*600 modeID and then force OpenScreenTags() to use that displayID then it works just fine. Why is (P96)BestModeID unable to find anything else than a 640*480 mode? Some kind of bug in 4.1 ?

Vacca foeda. Sum, ergo edo

Mr Bobo Cornwater
Go to top
Re: BestModeIDTags() always 640*480
Amigans Defender
Amigans Defender


See User information
@orgin

Which tags are you specifying? Certain combinations don't seem to return anything sensible.

FWIW in NetSurf I do this, which seems to work in 4.1:

id = p96BestModeIDTags(P96BIDTAG_NominalWidth,option_window_screen_width,
P96BIDTAG_NominalHeight,option_window_screen_height,
P96BIDTAG_Depth,32);

I found BestModeID() in graphics.library didn't like 32-bit modes, but that might be me passing the wrong things (filtering out p96 modes or something)

Go to top
Re: BestModeIDTags() always 640*480
Supreme Council
Supreme Council


See User information
@Chris

Hmm, worked out of the box now. I must have done something crazy before. Thanks.

Vacca foeda. Sum, ergo edo

Mr Bobo Cornwater
Go to top
Re: BestModeIDTags() always 640*480
Just popping in
Just popping in


See User information
@orgin & chris

I hope there is a TAG_END at the end of the list.

Go to top
Re: BestModeIDTags() always 640*480
Supreme Council
Supreme Council


See User information
@Gazelle

In mine there is ;O)

Vacca foeda. Sum, ergo edo

Mr Bobo Cornwater
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project