mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-19 03:06:39 +00:00
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.
This commit is contained in:
parent
4e43cdd041
commit
9399800c65
@ -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<Pixel_rgb565> canvas;
|
||||
|
Loading…
Reference in New Issue
Block a user