changeset 13590:9e50dbb00531 draft

(svn r18114) -Fix: RTL languages don't have the keyboard swapped
author rubidium <rubidium@openttd.org>
date Mon, 16 Nov 2009 12:29:52 +0000
parents a269ef5dd3fb
children be3afe587de4
files src/osk_gui.cpp
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/osk_gui.cpp
+++ b/src/osk_gui.cpp
@@ -293,7 +293,7 @@
 /** Construct the top row keys (cancel, ok, backspace). */
 static NWidgetBase *MakeTopKeys(int *biggest_index)
 {
-	NWidgetHorizontal *hor = new NWidgetHorizontal;
+	NWidgetHorizontal *hor = new NWidgetHorizontal();
 	int key_height = 12;
 
 	AddKey(hor, key_height, 6 * 2, WWT_TEXTBTN,    OSK_WIDGET_CANCEL,    STR_BUTTON_CANCEL,  biggest_index);
@@ -305,7 +305,7 @@
 /** Construct the row containing the digit keys. */
 static NWidgetBase *MakeNumberKeys(int *biggest_index)
 {
-	NWidgetHorizontal *hor = new NWidgetHorizontal;
+	NWidgetHorizontal *hor = new NWidgetHorizontalLTR();
 	int key_height = 16;
 
 	for (int widnum = OSK_WIDGET_NUMBERS_FIRST; widnum <= OSK_WIDGET_NUMBERS_LAST; widnum++) {
@@ -317,7 +317,7 @@
 /** Construct the qwerty row keys. */
 static NWidgetBase *MakeQwertyKeys(int *biggest_index)
 {
-	NWidgetHorizontal *hor = new NWidgetHorizontal;
+	NWidgetHorizontal *hor = new NWidgetHorizontalLTR();
 	int key_height = 16;
 
 	AddKey(hor, key_height, 3, WWT_PUSHIMGBTN, OSK_WIDGET_SPECIAL, SPR_OSK_SPECIAL, biggest_index);
@@ -331,7 +331,7 @@
 /** Construct the asdfg row keys. */
 static NWidgetBase *MakeAsdfgKeys(int *biggest_index)
 {
-	NWidgetHorizontal *hor = new NWidgetHorizontal;
+	NWidgetHorizontal *hor = new NWidgetHorizontalLTR();
 	int key_height = 16;
 
 	AddKey(hor, key_height, 4, WWT_IMGBTN, OSK_WIDGET_CAPS, SPR_OSK_CAPS, biggest_index);
@@ -344,7 +344,7 @@
 /** Construct the zxcvb row keys. */
 static NWidgetBase *MakeZxcvbKeys(int *biggest_index)
 {
-	NWidgetHorizontal *hor = new NWidgetHorizontal;
+	NWidgetHorizontal *hor = new NWidgetHorizontalLTR();
 	int key_height = 16;
 
 	AddKey(hor, key_height, 3, WWT_IMGBTN, OSK_WIDGET_SHIFT, SPR_OSK_SHIFT, biggest_index);
@@ -358,7 +358,7 @@
 /** Construct the spacebar row keys. */
 static NWidgetBase *MakeSpacebarKeys(int *biggest_index)
 {
-	NWidgetHorizontal *hor = new NWidgetHorizontal;
+	NWidgetHorizontal *hor = new NWidgetHorizontal();
 	int key_height = 16;
 
 	AddKey(hor, key_height,  8, NWID_SPACER, 0, 0, biggest_index);