whatever calling it good enough gg

This commit is contained in:
Adam D. Ruppe 2022-04-07 17:46:24 -04:00
parent a0a6e7431b
commit 158ce8e21d
2 changed files with 6 additions and 1 deletions

View File

@ -11033,7 +11033,8 @@ class Button : MouseActivatedWidget {
enum imgFlags = ImageLabel.DisplayFlags.displayImage | ImageLabel.DisplayFlags.displayText;
auto extraStyle = ((label.displayFlags & imgFlags) == ImageLabel.DisplayFlags.displayImage) ? BS_BITMAP : 0;
createWin32Window(this, "button"w, label.label, BS_PUSHBUTTON | extraStyle, WS_EX_TRANSPARENT );
// the transparent thing can mess up borders in other cases, so only going to keep it for bitmap things where it might matter
createWin32Window(this, "button"w, label.label, BS_PUSHBUTTON | extraStyle, extraStyle == BS_BITMAP ? WS_EX_TRANSPARENT : 0 );
if(label.image) {
sprite = Sprite.fromMemoryImage(parentWindow.win, label.image, true);

View File

@ -11976,6 +11976,10 @@ version(Windows) {
if(inSizeMove) {
SimpleWindow.processAllCustomEvents();
SimpleWindow.processAllCustomEvents();
} else {
// when it is all done, make sure everything is freshly drawn or there might be
// weird bugs left.
RedrawWindow(hwnd, null, null, RDW_ERASE | RDW_INVALIDATE | RDW_ALLCHILDREN);
}
oldWidth = this.width;