|
|
As far as I can tell the logic on Fl_Window_fullscreen.cxx is wrong, as when the window goes fullscreen it does not set the flag for fullscreen_active(). Also, it does not clear it either. Find a patch attached.
--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/E73A831A-62CB-4A7E-B01F-53C7B67EC52C%40gmail.com.
diff --git a/src/Fl_Window_fullscreen.cxx b/src/Fl_Window_fullscreen.cxx
index ab9e6c6bb..ecaa2b086 100644
--- a/src/Fl_Window_fullscreen.cxx
+++ b/src/Fl_Window_fullscreen.cxx
@@ -42,7 +42,6 @@ void Fl_Window::fullscreen() {
no_fullscreen_h = h();
if (shown() && !(flags() & Fl_Widget::FULLSCREEN)) {
pWindowDriver->fullscreen_on();
- } else {
set_flag(FULLSCREEN);
}
}
@@ -50,7 +49,6 @@ void Fl_Window::fullscreen() {
void Fl_Window::fullscreen_off(int X,int Y,int W,int H) {
if (shown() && (flags() & Fl_Widget::FULLSCREEN)) {
pWindowDriver->fullscreen_off(X, Y, W, H);
- } else {
clear_flag(FULLSCREEN);
}
no_fullscreen_x = no_fullscreen_y = no_fullscreen_w = no_fullscreen_h = 0;
—
Gonzalo Garramuno
ggarra13@gmail.com
--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/E73A831A-62CB-4A7E-B01F-53C7B67EC52C%40gmail.com.
[ Direct Link to Message ] | |
|
| |