Skip to content

Commit

Permalink
Fix OEM background not being set correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ImSwordQueen authored Jul 2, 2024
1 parent cfeea0b commit 098080b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ConsoleLogonUI/ui/dui_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ void duiManager::LoadBackground()
if (!PathFileExistsW(oemPath)) return;

HBITMAP bitmap = GetHBITMAPFromImageFile(oemPath);
auto graphic = DirectUI::Value::CreateGraphic(bitmap, (unsigned char)2, (unsigned int)0xFFFFFFFF, (bool)0, 0, 0);
auto graphic = DirectUI::Value::CreateGraphic(bitmap, (unsigned char)4, (unsigned int)0xFFFFFFFF, (bool)0, 0, false);
if (!graphic) return;

backgroundElement->SetValue(DirectUI::Element::BackgroundProp, 1, graphic);
Expand Down Expand Up @@ -576,4 +576,4 @@ void duiBackgroundWindow::OnDestroy()
void duiBackgroundWindow::Begin()
{

}
}

0 comments on commit 098080b

Please sign in to comment.