Skip to content

Commit

Permalink
More review comments and fixed the bug with border garbage.
Browse files Browse the repository at this point in the history
  • Loading branch information
MKadaner committed Dec 29, 2023
1 parent bab54c2 commit 4fb379e
Show file tree
Hide file tree
Showing 3 changed files with 131 additions and 123 deletions.
8 changes: 4 additions & 4 deletions far/dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2032,8 +2032,8 @@ void Dialog::ShowDialog(size_t ID)
if (Item.ListPtr)
{
// Перед отрисовкой спросим об изменении цветовых атрибутов
FarColor RealColors[std::to_underlying(vmenu_colors::COUNT)]{};
FarDialogItemColors ListColors{ sizeof(ListColors), 0, std::to_underlying(vmenu_colors::COUNT), RealColors };
vmenu_colors_t RealColors{};
FarDialogItemColors ListColors{ sizeof(ListColors), 0, RealColors.size(), RealColors.data()};
Item.ListPtr->GetColors(&ListColors);

if (DlgProc(DN_CTLCOLORDLGLIST,I,&ListColors))
Expand Down Expand Up @@ -3865,8 +3865,8 @@ int Dialog::SelectFromComboBox(DialogItemEx& CurItem, DlgEdit& EditLine)
DlgProc(DN_DROPDOWNOPENED, m_FocusPos, ToPtr(1));
SetComboBoxPos(&CurItem);
// Перед отрисовкой спросим об изменении цветовых атрибутов
FarColor RealColors[std::to_underlying(vmenu_colors::COUNT)]{};
FarDialogItemColors ListColors{ sizeof(ListColors), 0, std::to_underlying(vmenu_colors::COUNT), RealColors };
vmenu_colors_t RealColors{};
FarDialogItemColors ListColors{ sizeof(ListColors), 0, RealColors.size(), RealColors.data()};
ComboBox->SetColors(nullptr);
ComboBox->GetColors(&ListColors);

Expand Down
Loading

0 comments on commit 4fb379e

Please sign in to comment.