mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-01 22:30:42 -07:00
ftt: allow windowed mode resize options, add title (#646)
## Description of change This code adds a window title to FutureTomTom when running in windowed mode and allows the windowed graphics hooks to take effect. ## Testing I ran the game and made sure fullscreen mode still worked as well as all window move/resize functionality.
This commit is contained in:
@@ -476,6 +476,14 @@ static HWND WINAPI CreateWindowExW_hook(DWORD dwExStyle, LPCWSTR lpClassName, LP
|
||||
}
|
||||
}
|
||||
|
||||
// FTT
|
||||
if (avs::game::is_model("MMD")) {
|
||||
// set window name
|
||||
if (!lpWindowName) {
|
||||
lpWindowName = L"Future TomTom";
|
||||
}
|
||||
}
|
||||
|
||||
if (GRAPHICS_WINDOWED) {
|
||||
graphics_window_check_bounds_before_creation(x, y, nWidth, nHeight);
|
||||
}
|
||||
|
||||
@@ -532,8 +532,8 @@ bool graphics_window_decoration_change_crashes_game() {
|
||||
static std::once_flag flag;
|
||||
static bool result = false;
|
||||
std::call_once(flag, []() {
|
||||
// ddr crashes when frame style changes
|
||||
if (avs::game::is_model("MDX")) {
|
||||
// ddr and ftt crash when frame style changes
|
||||
if (avs::game::is_model("MDX") || avs::game::is_model("MMD")) {
|
||||
result = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user