Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/KisMainWindow.cpp
Show First 20 Lines • Show All 2617 Lines • ▼ Show 20 Line(s) | 2609 | if (!restoreGeometry(geom)) { | |||
---|---|---|---|---|---|
2618 | quint32 y = desk.y(); | 2618 | quint32 y = desk.y(); | ||
2619 | quint32 w = 0; | 2619 | quint32 w = 0; | ||
2620 | quint32 h = 0; | 2620 | quint32 h = 0; | ||
2621 | 2621 | | |||
2622 | // Default size -- maximize on small screens, something useful on big screens | 2622 | // Default size -- maximize on small screens, something useful on big screens | ||
2623 | const int deskWidth = desk.width(); | 2623 | const int deskWidth = desk.width(); | ||
2624 | if (deskWidth > 1024) { | 2624 | if (deskWidth > 1024) { | ||
2625 | // a nice width, and slightly less than total available | 2625 | // a nice width, and slightly less than total available | ||
2626 | // height to componensate for the window decs | 2626 | // height to compensate for the window decs | ||
2627 | w = (deskWidth / 3) * 2; | 2627 | w = (deskWidth / 3) * 2; | ||
2628 | h = (desk.height() / 3) * 2; | 2628 | h = (desk.height() / 3) * 2; | ||
2629 | } | 2629 | } | ||
2630 | else { | 2630 | else { | ||
2631 | w = desk.width(); | 2631 | w = desk.width(); | ||
2632 | h = desk.height(); | 2632 | h = desk.height(); | ||
2633 | } | 2633 | } | ||
2634 | 2634 | | |||
Show All 34 Lines |