Skip to content

gis-driver: improve small screen detection

Currently gis-driver considers the screen is small when its height is < 800px, although the window size is 1024x768.

When using e.g. a 800x600 screen in portrait mode (making it effectively a 600x800 screen), the small-screen property stays false even though the window largely overflows the display, making it unusable.

This patch improves the small screen detection routine by making sure the window can fit the screen, in both height and width.

Merge request reports