comparison dwt/widgets/Text.d @ 117:25f88bf5a6df

Only one file was damaged Backed out changeset 640928daee8c
author Frank Benoit <benoit@tionex.de>
date Mon, 11 Feb 2008 04:18:24 +0100
parents 640928daee8c
children ee3ee677f5fc
comparison
equal deleted inserted replaced
115:640928daee8c 117:25f88bf5a6df
1636 * 1636 *
1637 * @since 2.1.2 1637 * @since 2.1.2
1638 */ 1638 */
1639 public void setOrientation (int orientation) { 1639 public void setOrientation (int orientation) {
1640 checkWidget(); 1640 checkWidget();
1641 if (OS.IsWinCE) return; 1641 static if (OS.IsWinCE) return;
1642 if (OS.WIN32_VERSION < OS.VERSION (4, 10)) return; 1642 if (OS.WIN32_VERSION < OS.VERSION (4, 10)) return;
1643 int flags = DWT.RIGHT_TO_LEFT | DWT.LEFT_TO_RIGHT; 1643 int flags = DWT.RIGHT_TO_LEFT | DWT.LEFT_TO_RIGHT;
1644 if ((orientation & flags) is 0 || (orientation & flags) is flags) return; 1644 if ((orientation & flags) is 0 || (orientation & flags) is flags) return;
1645 style &= ~flags; 1645 style &= ~flags;
1646 style |= orientation & flags; 1646 style |= orientation & flags;