Add Invalidate method to NativeWindow and add Mac implementation
This commit is contained in:
parent
11e1f6b56c
commit
f19924bcb0
6 changed files with 16 additions and 6 deletions
|
@ -1101,6 +1101,11 @@ void NativeWindowMac::Center() {
|
|||
[window_ center];
|
||||
}
|
||||
|
||||
void NativeWindowMac::Invalidate() {
|
||||
[window_ flushWindow];
|
||||
[[window_ contentView] setNeedsDisplay:TRUE];
|
||||
}
|
||||
|
||||
void NativeWindowMac::SetTitle(const std::string& title) {
|
||||
// For macOS <= 10.9, the setTitleVisibility API is not available, we have
|
||||
// to avoid calling setTitle for frameless window.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue