mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-22 10:55:19 -04:00
[ui] fix whole screen refresh and progress bar issues
* Whole screen was being refreshed when calling InvalidateRect() in ResizeMoveCtrl() * Progress bar bounding rectangle could be erased at 0.0% * No progress was displayed when writing ISOHybrid images in DD mode * Also fix an issue when write error would not display the error string
This commit is contained in:
parent
39cb35e20c
commit
cdacc6f342
4 changed files with 16 additions and 14 deletions
|
@ -485,7 +485,7 @@ void ResizeMoveCtrl(HWND hDlg, HWND hCtrl, int dx, int dy, int dw, int dh, float
|
|||
MoveWindow(hCtrl, point.x + (int)(scale*(float)dx), point.y + (int)(scale*(float)dy),
|
||||
(rect.right - rect.left) + (int)(scale*(float)dw + border.cx),
|
||||
(rect.bottom - rect.top) + (int)(scale*(float)dh + border.cy), TRUE);
|
||||
InvalidateRect(hCtrl, NULL, TRUE);
|
||||
// Don't be tempted to call InvalidateRect() here - it causes intempestive whole screen refreshes
|
||||
}
|
||||
|
||||
void ResizeButtonHeight(HWND hDlg, int id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue