From 9399800c65d909a0e8392ae5eed864261c920bb0 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Wed, 1 Feb 2012 15:18:31 +0100 Subject: [PATCH] Limit width of launchpad window Without limiting the size of the launchpad window, the application prepares itself for the worst case, taking the screen size as maximum size to allocate its pixel buffers. Limiting the maximum width to a reasonable value reduces the memory footprint. --- demo/src/app/launchpad/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/src/app/launchpad/main.cc b/demo/src/app/launchpad/main.cc index ec330474a..953a457d9 100644 --- a/demo/src/app/launchpad/main.cc +++ b/demo/src/app/launchpad/main.cc @@ -165,7 +165,7 @@ int main(int argc, char **argv) long initial_h = read_int_attr_from_config("height", 400); /* init platform */ - static Platform pf(initial_x, initial_y, initial_w, initial_h); + static Platform pf(initial_x, initial_y, initial_w, initial_h, 400); /* init canvas */ static Chunky_canvas canvas;