Author Topic: Fullscreen fix  (Read 228 times)

Offline MrPlow

  • Prof. Inline
  • *****
  • Posts: 1442
    • View Profile
Fullscreen fix
« on: 2019-May-23 »
Hi

Just wondering if anyone has a solution for setting the fullscreen on GLB
So if a fullscreen fails then the screen window stretches to the desktop width and height...
tried with setscreen but not working for me.
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

Offline dreamerman

  • Global Moderator
  • Dr. Type
  • *******
  • Posts: 286
    • View Profile
    • my personal website
Re: Fullscreen fix
« Reply #1 on: 2019-May-23 »
hm.. on what OS You have problems with SetScreen? Did You tried using SetScreen on basic project just ot test if some graphic functions like 3d is causing problems?
Personally I didn't encounter problems with SetScreen apart one - default res 720p game on some user laptop (WXGA display) - game window was wrongly positioned - wasn't centered (so he wasn't able to see bottom of it), but that can be bypassed by manual change in app cfg file.
Check my source code editor for GLBasic - link

Offline MrPlow

  • Prof. Inline
  • *****
  • Posts: 1442
    • View Profile
Re: Fullscreen fix
« Reply #2 on: 2019-May-23 »
No fancy modes or 3D in use - or extern files.

1280 x 1024 is my destop and I have my project set to 1366 x 768 for common laptop full res settings.

As a test, I want to be able to resize to the 1280 x 1024 then re-position and rescale from 1366 to 1280 and center with a letterbox using createscreen sprite of 1366 x 768.

It seems the best alternative for me I think.


Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

Offline dreamerman

  • Global Moderator
  • Dr. Type
  • *******
  • Posts: 286
    • View Profile
    • my personal website
Re: Fullscreen fix
« Reply #3 on: 2019-May-23 »
So You are rather looking for something like PRESCALER command? To get Your game scaled properly to all resolutions that user can choose.
There was also one system for that made by spacefractal
Or I'm getting something wrong - it's late :D
« Last Edit: 2019-May-23 by dreamerman »
Check my source code editor for GLBasic - link

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3606
    • View Profile
    • Space Fractal
Re: Fullscreen fix
« Reply #4 on: 2019-May-25 »
currectly you cant set higher resolution than your desktop uses in glbasic without its freak out (a issue im should look a day, but not a priotity). use a external screen.

Yes im did a auto rescaling system as well past in the day in the code snippet. I mdo newer used PRESCALER throught due it. Genius Greedy Mouse and Karma Miwa did newer used any virtual screen, due speed reasons.
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline MrPlow

  • Prof. Inline
  • *****
  • Posts: 1442
    • View Profile
Re: Fullscreen fix
« Reply #5 on: 2019-May-26 »
Ah, I see.

Once I set my screen width to 1280 then fullscreen works with letterbox effect on a 4:3 screen.
So I can put a switch in my code to detect if the user screenwidth is lower than my designed size.

That could work.

Comp:
Speccy-48k, Speccy-128k, Amigas, PCs