[haiku-commits] haiku: hrev47711 - src/bin

  • From: kallisti5@xxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 19 Aug 2014 19:29:22 +0200 (CEST)

hrev47711 adds 1 changeset to branch 'master'
old head: be84a96144a13aeea5d1a30bc6bedc990ebdb57b
new head: febaef90ec3f6f2a8fc277ee34d12bb61deff63e
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=febaef9+%5Ebe84a96

----------------------------------------------------------------------------

febaef9: screen_info: Create BApplication to use BScreen
  
  * BScreen uses AppServerLink, thanks PulkoMandy!

                          [ Alexander von Gluck IV <kallisti5@xxxxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev47711
Commit:      febaef90ec3f6f2a8fc277ee34d12bb61deff63e
URL:         http://cgit.haiku-os.org/haiku/commit/?id=febaef9
Author:      Alexander von Gluck IV <kallisti5@xxxxxxxxxxx>
Date:        Tue Aug 19 17:28:54 2014 UTC

----------------------------------------------------------------------------

1 file changed, 4 insertions(+)
src/bin/screen_info.cpp | 4 ++++

----------------------------------------------------------------------------

diff --git a/src/bin/screen_info.cpp b/src/bin/screen_info.cpp
index a519192..2403cc8 100644
--- a/src/bin/screen_info.cpp
+++ b/src/bin/screen_info.cpp
@@ -7,6 +7,7 @@
  */
 
 
+#include <Application.h>
 #include <Screen.h>
 #include <stdio.h>
 
@@ -19,6 +20,9 @@
 int
 main()
 {
+       // BScreen usage requires BApplication for AppServerLink
+       BApplication app("application/x-vnd.Haiku-screen_info");
+
        for (int id = 0; id < MAX_SCREENS; id++) {
                screen_id screenIndex = {id};
                BScreen screen(screenIndex);


Other related posts:

  • » [haiku-commits] haiku: hrev47711 - src/bin - kallisti5