summaryrefslogtreecommitdiff
path: root/src/industry_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-11-13 09:56:25 +0000
committerrubidium <rubidium@openttd.org>2010-11-13 09:56:25 +0000
commit30637a8340844abce2aab469295b4160d1f2d532 (patch)
tree9fd08dd8b612649aa6e27fa4f36ca4be3b587e97 /src/industry_gui.cpp
parent43f807a9189a1dde0260f40f8553bcc8050a3e1d (diff)
downloadopenttd-30637a8340844abce2aab469295b4160d1f2d532.tar.xz
(svn r21157) -Codechange: remove information about the text direction out of the language "list"
Diffstat (limited to 'src/industry_gui.cpp')
-rw-r--r--src/industry_gui.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp
index 0766122c8..b574cee06 100644
--- a/src/industry_gui.cpp
+++ b/src/industry_gui.cpp
@@ -1654,7 +1654,7 @@ struct CargoesField {
/* Draw the industry legend. */
int blob_left, blob_right;
- if (_dynlang.text_dir == TD_RTL) {
+ if (_current_text_dir == TD_RTL) {
blob_right = xpos2 - BLOB_DISTANCE;
blob_left = blob_right - BLOB_WIDTH;
} else {
@@ -1669,7 +1669,7 @@ struct CargoesField {
/* Draw the other_produced/other_accepted cargoes. */
const CargoID *other_right, *other_left;
- if (_dynlang.text_dir == TD_RTL) {
+ if (_current_text_dir == TD_RTL) {
other_right = this->u.industry.other_accepted;
other_left = this->u.industry.other_produced;
} else {
@@ -1713,7 +1713,7 @@ struct CargoesField {
}
const CargoID *hor_left, *hor_right;
- if (_dynlang.text_dir == TD_RTL) {
+ if (_current_text_dir == TD_RTL) {
hor_left = this->u.cargo.cust_cargoes;
hor_right = this->u.cargo.supp_cargoes;
} else {
@@ -2434,7 +2434,7 @@ struct IndustryCargoesWindow : public Window {
if (vpos + row_height >= 0) {
int xpos = left_pos;
int col, dir;
- if (_dynlang.text_dir == TD_RTL) {
+ if (_current_text_dir == TD_RTL) {
col = last_column;
dir = -1;
} else {
@@ -2490,7 +2490,7 @@ struct IndustryCargoesWindow : public Window {
/* Return both positions, compensating for RTL languages (which works due to the equal symmetry in both displays). */
fieldxy->y = row;
xy->y = vpos;
- if (_dynlang.text_dir == TD_RTL) {
+ if (_current_text_dir == TD_RTL) {
fieldxy->x = num_columns - column;
xy->x = ((column & 1) ? CargoesField::CARGO_FIELD_WIDTH : CargoesField::industry_width) - xpos;
} else {