diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-01-20 06:02:09 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-01-20 06:04:13 +0100 |
commit | dbe83f3a83001f1ba419b188f41c06054ef54a8e (patch) | |
tree | 9f3c67b7c21a0a106cacb2306e57c0d0568ce8ad /Userland | |
parent | 8eae89a4054435dc81b534d91ec2a4f12ec7796f (diff) | |
download | serenity-dbe83f3a83001f1ba419b188f41c06054ef54a8e.zip |
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.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/guitest.cpp | 2 | ||||
-rw-r--r-- | Userland/guitest2.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
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); |