mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-09-02 19:39:12 +00:00
Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
d854bb82e5 | ||
|
5cc06f5dbe | ||
|
69168078d8 | ||
|
7cdb8c92e0 | ||
|
402baa63f2 | ||
|
e80cb487e6 | ||
|
ee6e30ead9 | ||
|
4b7fcaca0f |
2
.github/workflows/release-macos.yml
vendored
2
.github/workflows/release-macos.yml
vendored
@@ -79,7 +79,7 @@ jobs:
|
|||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
|
|
||||||
- name: Import code signing certificates
|
- name: Import code signing certificates
|
||||||
uses: Apple-Actions/import-codesign-certs@v1
|
uses: Apple-Actions/import-codesign-certs@v2
|
||||||
with:
|
with:
|
||||||
# The certificates in a PKCS12 file encoded as a base64 string
|
# The certificates in a PKCS12 file encoded as a base64 string
|
||||||
p12-file-base64: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_P12_BASE64 }}
|
p12-file-base64: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_P12_BASE64 }}
|
||||||
|
@@ -5,7 +5,7 @@ if(NOT BINARY_NAME)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
project(${BINARY_NAME}
|
project(${BINARY_NAME}
|
||||||
VERSION 13.1
|
VERSION 13.3
|
||||||
)
|
)
|
||||||
|
|
||||||
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
|
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
|
||||||
|
@@ -1,3 +1,8 @@
|
|||||||
|
13.3 (2023-06-11)
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
Fix: [Win32] use full monitor resolution for fullscreen (#10985)
|
||||||
|
|
||||||
|
|
||||||
13.2 (2023-06-10)
|
13.2 (2023-06-10)
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
Change: [Win32] position window in center of workspace of primary display (#10942)
|
Change: [Win32] position window in center of workspace of primary display (#10942)
|
||||||
|
@@ -212,13 +212,18 @@ bool VideoDriver_Win32Base::MakeWindow(bool full_screen, bool resize)
|
|||||||
if (this->main_wnd != nullptr) {
|
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);
|
if (!_window_maximize && resize) SetWindowPos(this->main_wnd, 0, 0, 0, w, h, SWP_NOACTIVATE | SWP_NOOWNERZORDER | SWP_NOZORDER | SWP_NOMOVE);
|
||||||
} else {
|
} else {
|
||||||
/* Center on the workspace of the primary display. */
|
int x = 0;
|
||||||
|
int y = 0;
|
||||||
|
|
||||||
|
/* For windowed mode, center on the workspace of the primary display. */
|
||||||
|
if (!this->fullscreen) {
|
||||||
MONITORINFO mi;
|
MONITORINFO mi;
|
||||||
mi.cbSize = sizeof(mi);
|
mi.cbSize = sizeof(mi);
|
||||||
GetMonitorInfo(MonitorFromWindow(0, MONITOR_DEFAULTTOPRIMARY), &mi);
|
GetMonitorInfo(MonitorFromWindow(0, MONITOR_DEFAULTTOPRIMARY), &mi);
|
||||||
|
|
||||||
int x = (mi.rcWork.right - mi.rcWork.left - w) / 2;
|
x = (mi.rcWork.right - mi.rcWork.left - w) / 2;
|
||||||
int y = (mi.rcWork.bottom - mi.rcWork.top - h) / 2;
|
y = (mi.rcWork.bottom - mi.rcWork.top - h) / 2;
|
||||||
|
}
|
||||||
|
|
||||||
char window_title[64];
|
char window_title[64];
|
||||||
seprintf(window_title, lastof(window_title), "OpenTTD %s", _openttd_revision);
|
seprintf(window_title, lastof(window_title), "OpenTTD %s", _openttd_revision);
|
||||||
|
Reference in New Issue
Block a user