1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-16 11:09:11 +00:00

Compare commits

..

8 Commits
13.2 ... 13.3

Author SHA1 Message Date
glx22
d854bb82e5 Doc: Changelog for 13.3 2023-06-11 17:03:58 +02:00
glx22
5cc06f5dbe Doc: Bump release version. 2023-06-11 17:03:58 +02:00
glx22
69168078d8 Revert ee6e30e: pretending 13.2.1 was 13.2 didn't work
This reverts commit ee6e30ead9.
2023-06-11 17:03:58 +02:00
Owen Rudge
7cdb8c92e0 Change: [Actions] Upgrade import-codesign-certs dependency in macOS build workflow 2023-06-11 16:41:13 +02:00
Patric Stout
402baa63f2 Doc: Changelog for 13.2.1 (#10988) 2023-06-11 13:47:20 +02:00
Patric Stout
e80cb487e6 Doc: Bump release version. 2023-06-11 13:42:31 +02:00
Patric Stout
ee6e30ead9 Fix: make 13.2.1 act like 13.2 for networking 2023-06-11 13:42:31 +02:00
Patric Stout
4b7fcaca0f Fix 07add7a9: [Win32] use full monitor resolution for fullscreen (#10985)
On Windows in fullscreen you cannot reach the top with
the cursor for the halve of the height of your toolbar.

Additionally, on Win10 in fullscreen you can see the actual toolbar.
2023-06-11 13:42:31 +02:00
4 changed files with 18 additions and 8 deletions

View File

@@ -79,7 +79,7 @@ jobs:
echo "::endgroup::"
- name: Import code signing certificates
uses: Apple-Actions/import-codesign-certs@v1
uses: Apple-Actions/import-codesign-certs@v2
with:
# The certificates in a PKCS12 file encoded as a base64 string
p12-file-base64: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_P12_BASE64 }}

View File

@@ -5,7 +5,7 @@ if(NOT BINARY_NAME)
endif()
project(${BINARY_NAME}
VERSION 13.1
VERSION 13.3
)
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)

View File

@@ -1,3 +1,8 @@
13.3 (2023-06-11)
------------------------------------------------------------------------
Fix: [Win32] use full monitor resolution for fullscreen (#10985)
13.2 (2023-06-10)
------------------------------------------------------------------------
Change: [Win32] position window in center of workspace of primary display (#10942)

View File

@@ -212,13 +212,18 @@ bool VideoDriver_Win32Base::MakeWindow(bool full_screen, bool resize)
if (this->main_wnd != nullptr) {
if (!_window_maximize && resize) SetWindowPos(this->main_wnd, 0, 0, 0, w, h, SWP_NOACTIVATE | SWP_NOOWNERZORDER | SWP_NOZORDER | SWP_NOMOVE);
} else {
/* Center on the workspace of the primary display. */
MONITORINFO mi;
mi.cbSize = sizeof(mi);
GetMonitorInfo(MonitorFromWindow(0, MONITOR_DEFAULTTOPRIMARY), &mi);
int x = 0;
int y = 0;
int x = (mi.rcWork.right - mi.rcWork.left - w) / 2;
int y = (mi.rcWork.bottom - mi.rcWork.top - h) / 2;
/* For windowed mode, center on the workspace of the primary display. */
if (!this->fullscreen) {
MONITORINFO mi;
mi.cbSize = sizeof(mi);
GetMonitorInfo(MonitorFromWindow(0, MONITOR_DEFAULTTOPRIMARY), &mi);
x = (mi.rcWork.right - mi.rcWork.left - w) / 2;
y = (mi.rcWork.bottom - mi.rcWork.top - h) / 2;
}
char window_title[64];
seprintf(window_title, lastof(window_title), "OpenTTD %s", _openttd_revision);