Skip to content

Commit 04ef193

Browse files
committed
Fix Delete Yes/No coordinates when DPI-scaled
1 parent d576e0a commit 04ef193

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commander.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ const bool CCommander::openCopyMenu(void) const
230230
l_dialogRetVal = l_dialog.execute();
231231
if (l_dialogRetVal == 3 + l_rename)
232232
{
233-
CDialog l_dialog2("", l_dialog.getX() + l_dialog.getImage()->w - DIALOG_BORDER, l_dialog.getY() + DIALOG_BORDER + (l_dialog.getHighlightedIndex() + 1) * LINE_HEIGHT);
233+
CDialog l_dialog2("", l_dialog.getX() + l_dialog.getImage()->w / screen.ppu_x - DIALOG_BORDER, l_dialog.getY() / screen.ppu_y + DIALOG_BORDER + (l_dialog.getHighlightedIndex() + 1) * LINE_HEIGHT);
234234
l_dialog2.addOption("Yes");
235235
l_dialog2.addOption("No");
236236
l_dialog2.init();

0 commit comments

Comments
 (0)