[dasher] iPhone: rm ref to LP_REAL_ORIENTATION; move import.



commit 4977b70d01e4d20f1ba8357df16132f8e49384e2
Author: Alan Lawrence <acl33 inf phy cam ac uk>
Date:   Mon Jul 11 15:29:15 2011 +0100

    iPhone: rm ref to LP_REAL_ORIENTATION; move import.

 Src/iPhone/Classes/CDasherInterfaceBridge.mm |    1 +
 Src/iPhone/Classes/DasherAppDelegate.h       |    1 -
 Src/iPhone/Classes/IPhoneInputs.mm           |    2 +-
 3 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/Src/iPhone/Classes/CDasherInterfaceBridge.mm b/Src/iPhone/Classes/CDasherInterfaceBridge.mm
index dbb07f1..65fdd46 100644
--- a/Src/iPhone/Classes/CDasherInterfaceBridge.mm
+++ b/Src/iPhone/Classes/CDasherInterfaceBridge.mm
@@ -18,6 +18,7 @@
 #import "ButtonMode.h"
 #import "TwoButtonDynamicFilter.h"
 #import "TwoPushDynamicFilter.h"
+#import "GameModule.h"
 #import <iostream>
 #import <fcntl.h>
 
diff --git a/Src/iPhone/Classes/DasherAppDelegate.h b/Src/iPhone/Classes/DasherAppDelegate.h
index 766784a..cf4ab45 100644
--- a/Src/iPhone/Classes/DasherAppDelegate.h
+++ b/Src/iPhone/Classes/DasherAppDelegate.h
@@ -10,7 +10,6 @@
 #import "CDasherInterfaceBridge.h"
 #import "TextView.h"
 #import "Actions.h"
-#import "GameModule.h"
 
 @class EAGLView;
 @class FliteTTS;
diff --git a/Src/iPhone/Classes/IPhoneInputs.mm b/Src/iPhone/Classes/IPhoneInputs.mm
index 4458a39..92536d7 100644
--- a/Src/iPhone/Classes/IPhoneInputs.mm
+++ b/Src/iPhone/Classes/IPhoneInputs.mm
@@ -121,7 +121,7 @@ bool CIPhoneMouseInput::GetScreenCoords(screenint &iX, screenint &iY, CDasherVie
   CDasherScreen *scr(pView->Screen());
   //double x/y
   if (GetBoolParameter(BP_DOUBLE_X)) {
-    switch (GetLongParameter(LP_REAL_ORIENTATION)) {
+    switch (pView->GetOrientation()) {
       case Opts::LeftToRight:
         iX=min(iX*2, scr->GetWidth());
         break;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]