DXGL r839 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r838‎ | r839 | r840 >
Date:00:57, 1 August 2018
Author:admin
Status:new
Tags:
Comment:
Adjust alignment of value text in Hacks tab listbox to match the combo boxes.
Modified paths:
  • /dxglcfg/dxglcfg.cpp (modified) (history)

Diff [purge]

Index: dxglcfg/dxglcfg.cpp
@@ -2616,7 +2616,7 @@
26172617 if (hackstabitem == 3) GetWindowRect(GetDlgItem(GetDlgItem(hWnd, IDC_HACKSLIST), IDC_HACKSEDIT), &r);
26182618 else GetWindowRect(GetDlgItem(GetDlgItem(hWnd, IDC_HACKSLIST), IDC_HACKSDROPDOWN), &r);
26192619 memcpy(&r2, &drawitem->rcItem, sizeof(RECT));
2620 - r2.left = r2.right - (r.right - r.left);
 2620+ r2.left = r2.right - (r.right - r.left) + 4;
26212621 DrawHacksItemText(drawitem->hDC, &r2, drawitem->itemID);
26222622 if (drawitem->itemState & ODS_FOCUS) DrawFocusRect(drawitem->hDC, &drawitem->rcItem);
26232623 SetTextColor(drawitem->hDC, OldTextColor);