Skip to content

Commit

Permalink
Fix debug_ui_layout (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
is-this-c authored Dec 13, 2024
1 parent aeaf9d1 commit df70d69
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions game_patch/misc/ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
static inline void debug_ui_layout([[ maybe_unused ]] rf::ui::Gadget& gadget)
{
#if DEBUG_UI_LAYOUT
int x = gadget.GetAbsoluteX() * ui_scale_x;
int y = gadget.GetAbsoluteY() * ui_scale_y;
int w = gadget.w * ui_scale_x;
int h = gadget.h * ui_scale_y;
gr_set_color((x ^ y) & 255, 0, 0, 64);
gr_rect(x, y, w, h);
int x = gadget.get_absolute_x() * rf::ui::scale_x;
int y = gadget.get_absolute_y() * rf::ui::scale_y;
int w = gadget.w * rf::ui::scale_x;
int h = gadget.h * rf::ui::scale_y;
rf::gr::set_color((x ^ y) & 255, 0, 0, 64);
rf::gr::rect(x, y, w, h);
#endif
}

Expand Down

0 comments on commit df70d69

Please sign in to comment.