Skip to content

Commit 3492394

Browse files
committed
Fix RuneLite rendering in Direct-Draw mode by disabling menu rendering detection.
1 parent fba7de3 commit 3492394

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

RemoteInput/Platform/NativeHooks_Windows.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,11 +1173,13 @@ HRESULT __stdcall D3D9Device_EndScene(IDirect3DDevice9* device) noexcept
11731173
control_center->get_applet_dimensions(&x, &y, &applet_width, &applet_height);
11741174
control_center->set_target_dimensions(static_cast<std::int32_t>(applet_width), static_cast<std::int32_t>(applet_height));
11751175

1176-
if (width != applet_width || height != applet_height)
1176+
/*if (width != applet_width || height != applet_height)
11771177
{
11781178
// Possibly menu open, render normally
11791179
return directx_device9_endscene_hook->call<HRESULT, decltype(D3D9Device_EndScene)>(device);
1180-
}
1180+
}*/
1181+
1182+
control_center->set_target_dimensions(static_cast<std::int32_t>(width), static_cast<std::int32_t>(height));
11811183

11821184
bool minimized = false;
11831185
ImageFormat image_format = control_center->get_image_format();

0 commit comments

Comments
 (0)