Opened 4 years ago

Closed 4 years ago

#5743 closed task (fixed)

0AD does not fill the screen in macOS, or loses text if it does

Reported by: Felix Owned by:
Priority: Must Have Milestone: Alpha 24
Component: Core engine Keywords: macos, ui
Cc: Patch:

Description

Hi,

I built 0ad from today from commit 74d5ec0c (HEAD at that time) on macOS Catalina (10.15.4). I applied the changes mentioned in #5729 to the build script to get it working.

Now, when I start the game (both windowed and fullscreen) the game view does not fill the screen. However, the mouse still has to reach all the way to the top right corner to reach the menu in game for example. After re-gaining focus (moving to another application temporarily) the main menu and the new game screen resize to cover the available space. However, most of the UI text disappears.

After starting a new match the screen goes back to the initially size not covering the screen. I tried adjusting the settings by duplicating the default.cfg, renaming it to local.cfg and hardcoding the screen resolution of 2560 x 1600 with no effect.

I just learned about this project today and would be willing to test or fix this problem if someone could point me in the right direction.

Cheers, Felix

(I hope the pictures got attached as well.)

  • windowed.png shows the initial state after starting.
  • afterFocusRegain.png shows the disseverance of text in the main menu.
  • newGame shows the disseverance of text in the new game screen.
  • game shows the state after starting a new game.

Attachments (4)

windowed.png (404.6 KB ) - added by Felix 4 years ago.
Screen after game start
afterFocusRegain.png (1.2 MB ) - added by Felix 4 years ago.
Lost text after regained focus
newGame.png (506.5 KB ) - added by Felix 4 years ago.
Lost text in new game screen
game.png (503.5 KB ) - added by Felix 4 years ago.
new game again not filling the screen

Change History (7)

by Felix, 4 years ago

Attachment: windowed.png added

Screen after game start

by Felix, 4 years ago

Attachment: afterFocusRegain.png added

Lost text after regained focus

by Felix, 4 years ago

Attachment: newGame.png added

Lost text in new game screen

by Felix, 4 years ago

Attachment: game.png added

new game again not filling the screen

comment:2 by Felix, 4 years ago

Oh thank you. The first link helped. This project is quite confusing with the different places to look at (SNV, the forum and GitHub, gitlab) :D So to wrap up, the library versions for macOS had to be bumped up to newer versions and guile in gnuTLS needed to be disabled.

-GNUTLS_VERSION="gnutls-3.6.8"
+GNUTLS_VERSION="gnutls-3.6.13"
-ICU_VERSION="icu4c-59_1"
+ICU_VERSION="icu4c-59_2"
-LIB_URL="http://download.icu-project.org/files/icu4c/59.1/"
+LIB_URL="https://github.com/unicode-org/icu/releases/download/release-59-2/"

+          --disable-guile \
           --disable-nls \
-    && make ${JOBS} && make install) || die "GnuTLS build failed"
+    && make ${JOBS} LDFLAGS= install) || die "GnuTLS build failed"

Since there are people already working on all that I guess there is no need for me to send any pull requests for this...

comment:3 by Felix, 4 years ago

Resolution: fixed
Status: newclosed

There are patches D2716, D2717 and this conversation here that indicates someone else is preparing a fix for the problem. I will close this then.

Note: See TracTickets for help on using tickets.