From febaef90ec3f6f2a8fc277ee34d12bb61deff63e Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Tue, 19 Aug 2014 13:28:54 -0400 Subject: [PATCH] screen_info: Create BApplication to use BScreen * BScreen uses AppServerLink, thanks PulkoMandy! --- src/bin/screen_info.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bin/screen_info.cpp b/src/bin/screen_info.cpp index a519192265..2403cc88ab 100644 --- a/src/bin/screen_info.cpp +++ b/src/bin/screen_info.cpp @@ -7,6 +7,7 @@ */ +#include #include #include @@ -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);