[PATCH] Haiku fullscreen support

François Revol <[email protected]> Thu, 30 Jan 2014 10:56:31 +0100
Newsgroups gmane.editors.qemacs.devel
Message-ID <[email protected]>
This adds simple fullscreen support by zooming our window (window border
is still present).

François.

_______________________________________________
Qemacs-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/qemacs-devel
qemacs-haiku-fullscreen-20140130.patch (text/x-patch, 775 B)
Index: haiku.cpp
===================================================================
RCS file: /sources/qemacs/qemacs/haiku.cpp,v
retrieving revision 1.8
diff -u -r1.8 haiku.cpp
--- haiku.cpp	29 Jan 2014 22:53:57 -0000	1.8
+++ haiku.cpp	30 Jan 2014 09:51:09 -0000
@@ -853,6 +853,14 @@
     b->priv_data = NULL;
 }
 
+static void haiku_full_screen(QEditScreen *s, int full_screen)
+{
+    WindowState *ctx = (WindowState *)s->priv_data;
+
+    BMessenger msgr(ctx->v->Looper());
+    msgr.SendMessage(B_ZOOM);
+}
+
 static QEDisplay haiku_dpy = {
     "haiku",
     haiku_probe,
@@ -875,7 +883,7 @@
     NULL, /* dpy_bmp_draw */
     NULL, /* dpy_bmp_lock */
     NULL, /* dpy_bmp_unlock */
-    NULL, /* dpy_full_screen */
+    haiku_full_screen,
     NULL, /* next */
 };