Skip to content

Commit

Permalink
Hope now it fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
DartVanya committed Mar 19, 2024
1 parent 6f376b6 commit 9c0452d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/ClassicExplorer/ExplorerBand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ LRESULT CALLBACK CBandWindow::CBandWindowSubclassProc(HWND hWnd, UINT uMsg, WPAR

// Custom draw our "pressed" button depending on Toolbar style
if (!GetSettingBool(L"ToolbarListMode")) {
int iconY = nmcd_rc.top + ((nmcd_rc.bottom - nmcd_rc.top) / 2 - (iconSize + (label ? textSize.cy : 0)) / 2) - (label != NULL);
int iconY = nmcd_rc.top + ((nmcd_rc.bottom - nmcd_rc.top) / 2 - (iconSize + (label ? textSize.cy : 0)) / 2) + 1 - (label ? 2 : 0);
ImageList_Draw(imgList, tbbi.iImage, hdc, nmcd_rc.left + ((nmcd_rc.right - nmcd_rc.left) / 2 - iconSize / 2) + 1, iconY, ILD_NORMAL);
if (label) {
// Reminder - lpNMCustomDraw->nmcd.rc is read only, need to copy value to work with
Expand Down

0 comments on commit 9c0452d

Please sign in to comment.