mirror of https://github.com/adamdruppe/arsd.git
windows build fixes
This commit is contained in:
parent
65b3b06f6d
commit
594c6e1c4d
|
@ -2193,6 +2193,8 @@ class TextEdit : Widget {
|
|||
auto l = GetWindowTextA(hwnd, buffer.ptr, buffer.length - 1);
|
||||
if(l >= 0)
|
||||
return buffer[0 .. l].idup;
|
||||
else
|
||||
return null;
|
||||
} else {
|
||||
return textLayout.getPlainText();
|
||||
}
|
||||
|
|
|
@ -3559,7 +3559,7 @@ version(Windows) {
|
|||
}
|
||||
|
||||
// hide cursor in client area if necessary
|
||||
if (curHidden > 0 && msg == WM_SETCURSOR && cast(ushort)lParam == HTCLIENT) {
|
||||
if (wind.curHidden > 0 && msg == WM_SETCURSOR && cast(ushort)lParam == 1/*HTCLIENT*/) {
|
||||
SetCursor(null);
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue