summaryrefslogtreecommitdiff
path: root/src/ui/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/util.c')
-rw-r--r--src/ui/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/util.c b/src/ui/util.c
index 6b9a43d9..2a72d511 100644
--- a/src/ui/util.c
+++ b/src/ui/util.c
@@ -738,7 +738,7 @@ void openMenu_Widget(iWidget *d, iInt2 coord) {
738} 738}
739 739
740void openMenuFlags_Widget(iWidget *d, iInt2 coord, iBool postCommands) { 740void openMenuFlags_Widget(iWidget *d, iInt2 coord, iBool postCommands) {
741 const iInt2 rootSize = rootSize_Window(get_Window()); 741 const iInt2 rootSize = size_Window(get_Window());
742 const iBool isPortraitPhone = (deviceType_App() == phone_AppDeviceType && isPortrait_App()); 742 const iBool isPortraitPhone = (deviceType_App() == phone_AppDeviceType && isPortrait_App());
743 const iBool isSlidePanel = (flags_Widget(d) & horizontalOffset_WidgetFlag) != 0; 743 const iBool isSlidePanel = (flags_Widget(d) & horizontalOffset_WidgetFlag) != 0;
744 if (postCommands) { 744 if (postCommands) {
@@ -756,7 +756,7 @@ void openMenuFlags_Widget(iWidget *d, iInt2 coord, iBool postCommands) {
756 if (!isSlidePanel) { 756 if (!isSlidePanel) {
757 setFlags_Widget(d, borderTop_WidgetFlag, iTrue); 757 setFlags_Widget(d, borderTop_WidgetFlag, iTrue);
758 } 758 }
759 d->rect.size.x = rootSize_Window(get_Window()).x; 759 d->rect.size.x = size_Window(get_Window()).x;
760 } 760 }
761 /* Update item fonts. */ { 761 /* Update item fonts. */ {
762 iForEach(ObjectList, i, children_Widget(d)) { 762 iForEach(ObjectList, i, children_Widget(d)) {
@@ -1754,7 +1754,7 @@ static void acceptValueInput_(iWidget *dlg) {
1754} 1754}
1755 1755
1756static void updateValueInputWidth_(iWidget *dlg) { 1756static void updateValueInputWidth_(iWidget *dlg) {
1757 const iRect safeRoot = safeRootRect_Window(get_Window()); 1757 const iRect safeRoot = safeRect_Root(get_Root());
1758 const iInt2 rootSize = safeRoot.size; 1758 const iInt2 rootSize = safeRoot.size;
1759 iWidget * title = findChild_Widget(dlg, "valueinput.title"); 1759 iWidget * title = findChild_Widget(dlg, "valueinput.title");
1760 iWidget * prompt = findChild_Widget(dlg, "valueinput.prompt"); 1760 iWidget * prompt = findChild_Widget(dlg, "valueinput.prompt");