Skip to content

Commit

Permalink
Make ultrawide work in DMC5 (again?) (#864)
Browse files Browse the repository at this point in the history
  • Loading branch information
plneappl authored Aug 15, 2023
1 parent 98fde81 commit 5e07c69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mods/Graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,15 +278,15 @@ bool Graphics::on_pre_gui_draw_element(REComponent* gui_element, void* primitive
}

void Graphics::on_view_get_size(REManagedObject* scene_view, float* result) {
#ifdef SF6
#if defined(SF6) || defined(DMC5)
if (m_ultrawide_fix->value()) {
auto regenny_view = (regenny::via::SceneView*)scene_view;
auto window = regenny_view->window;

if (window != nullptr) {
window->borderless_size.w = (float)window->width;
window->borderless_size.h = (float)window->height;
}
}
}
#endif

Expand Down

0 comments on commit 5e07c69

Please sign in to comment.