Menu

#99 [lbreakouthd:BUG] Fullscreen not scaling correctly on 2880x1800 resolution

None
closed-fixed
nobody
None
5
2023-09-23
2023-07-30
zizlog
No

Using lbreakouthd on a 2880x1800 display resolution in fullscreen mode will show garbled output/ or a partial copy of the game's screens above or below the game's "window" when playing.
When in the menu, there is a black bar above and below the game's "window".
I'm not sure which resolution it scales to in fullscreen mode, because it doesn't allow any other tool to be opened, i.e. Spectacle or KRuler, to measure it while in fullscreen mode.

LBreakoutHD v1.1.1 on openSUSE 15.5 with KDE Plasma 5.27.4

Discussion

  • Michael Speck

    Michael Speck - 2023-09-05

    It always uses your full display resolution with a centered 16:9 viewport and scales all assets. So it should result in black bars at the bottom and top like in cinema for your resolution as you describe it. That is the best way to handle things since there are so many different monitor ratios available. However, it should show clear black not garbage pixels outside the viewport. I just found a bug where I did not set the alpha value correctly. So if you try the latest checkout from SVN it should fix that issue. It were great if you could try that. Thanks, MIchael

     
  • Michael Speck

    Michael Speck - 2023-09-05

    And if you start the game from a console you can see the log where resolution and viewport are stated.

     
    • zizlog

      zizlog - 2023-09-21

      I checked out the latest version and got this running make, just a warning and the only one:

      list.c:110:21: warning: assignment discards const qualifier from pointer target type [-Wdiscarded-qualifiers]
           new_entry->item = item;
                           ^
      

      Full screen mode works fine, even on WUXGA (1920x1200). There are no black bars. On top of it, changing to another Workspace while running the game provides the native resolution of the screen on that workspace. Minimizing the game from full screen also puts back the display's native resolution of 2800x1800.

      Here is the log running it in window mode (only substituted the user name by its variable):

      :~/lbreakouthd> lbreakouthd 
      lbreakouthd 1.1.3
      Copyright 2018-2023 Michael Speck
      Published under GNU GPL
      ---
      Loading configuration /home/{$USER}/.lbreakouthd/lbreakouthd.conf
      Loading hiscores /usr/local/var/lbreakouthd.hscr
      Initializing SDL
      Mixer opened (16 channels, 1024 buf size)
      No game controller found...
      Initializing View (Theme=Standard, Resolution=1080)
      Using display 0
      Using window mode, size 1920x1080
      Scale factor x100: 225
      Brick screen size: 90x45
      Creating main window with 1920x1080, fullscreen=0
      Loading theme /usr/local/share/lbreakouthd/themes/Standard
      Added player Testplayer
      Hiscore chart 'test' not found, creating empty chart
      Mixer closed
      Finalizing SDL
      Hiscores saved to /usr/local/var/lbreakouthd.hscr
      Configuration saved to home/{$USER}/.lbreakouthd/lbreakouthd.conf
      :~/lgames-code/lbreakouthd> 
      

      Log difference for running it in full screen mode:

      Fullscreen resolution 2880x1800 not 16:9
        Using viewport x=0,y=90,w=2880,h=1620
      Scale factor x100: 335
      Brick screen size: 134x67
      Creating main window with 2880x1800, fullscreen=1
      

      I got confused with the version numbers. Since I was running v1.1.1 but the changelog didn't show any of the bugs fixed, it was safe to report them. Version 1.1.3 was released back in May, so it would probably ok to change that.

       

      Last edit: zizlog 2023-09-21
  • Michael Speck

    Michael Speck - 2023-09-23
    • status: open --> closed-fixed
    • Group: -->
     

Log in to post a comment.

MongoDB Logo MongoDB