fix screen depth and print syntax

develop
Myk Taylor 2023-09-24 23:23:49 -07:00
parent e8f0de4078
commit 8dc5f8e86b
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

@ -125,7 +125,7 @@ jobs:
run: tar xjf test-${{ matrix.compiler }}.tar.bz2 -C ${{ env.DF_FOLDER }}
- name: Start X server
if: matrix.os == 'ubuntu'
run: Xvfb :0 -screen 0 1600x1200x32 &
run: Xvfb :0 -screen 0 1600x1200x24 &
- name: Run lua tests
timeout-minutes: 10
env:

@ -213,7 +213,7 @@ end
local function click_top_title_button(scr)
local sw, sh = dfhack.screen.getWindowSize()
print(('screen dimensions: %d, %d'):format(sw. sh))
print(('screen dimensions: %d, %d'):format(sw, sh))
df.global.gps.mouse_x = sw // 2
df.global.gps.precise_mouse_x = df.global.gps.mouse_x * df.global.gps.tile_pixel_x
if sh < 60 then