From dbe83f3a83001f1ba419b188f41c06054ef54a8e Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 20 Jan 2019 06:02:09 +0100 Subject: Make it possible for userspace to alter window title/geometry. I'm not in love with this syscall API but it allows me to make progress. --- Userland/guitest.cpp | 2 +- Userland/guitest2.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Userland') diff --git a/Userland/guitest.cpp b/Userland/guitest.cpp index b923eb8f9e..8f48a5cc75 100644 --- a/Userland/guitest.cpp +++ b/Userland/guitest.cpp @@ -14,7 +14,7 @@ static void paint(GraphicsBitmap& bitmap, int width, int height); int main(int argc, char** argv) { - GUI_CreateWindowParameters wparams; + GUI_WindowParameters wparams; wparams.rect = { { 100, 100 }, { 120, 120 } }; wparams.background_color = 0xffc0c0; strcpy(wparams.title, "GUI test app"); diff --git a/Userland/guitest2.cpp b/Userland/guitest2.cpp index b9f2decf3b..850dd5abd8 100644 --- a/Userland/guitest2.cpp +++ b/Userland/guitest2.cpp @@ -28,7 +28,7 @@ GWindow* make_font_test_window() { auto* window = new GWindow; window->set_title("Font test"); - window->set_rect({ 140, 100, 300, 80 }); + window->set_rect({ 440, 100, 300, 80 }); auto* widget = new GWidget; window->set_main_widget(widget); -- cgit v1.2.3