Skip to content

Commit

Permalink
Revert "i forgot an extra check"
Browse files Browse the repository at this point in the history
This reverts commit dde28b3.
  • Loading branch information
travy-patty committed Sep 3, 2024
1 parent de85212 commit 2d08142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ConsoleLogonUI/ui/dui_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ static bool GetBackground(HBITMAP* OutBitmap)
int dw = 0; int dh = 0;
if (GetBitmapResolution(bitmapDefault, &dw, &dh) && BitmapAspectRatioEqualsScreen(bitmapDefault))
{
if ((dw > dataToUse->w || dh > dataToUse->h) && dw <= GetSystemMetrics(SM_CXSCREEN) && dh <= GetSystemMetrics(SM_CYSCREEN))
if (dw > dataToUse->w || dh > dataToUse->h)
bDefaultBetter = true;
}

Expand Down

0 comments on commit 2d08142

Please sign in to comment.