From: Damian <dam...@gm...> - 2010-07-18 23:30:27
|
Yes, I've found the problem, in Device.java there's something like this: @Override public void paint(Graphics g) { if (glPanel == null) { Graphics2D g2d = (Graphics2D) g; AffineTransform savedTransform = g2d.getTransform(); g2d.transform(deviceTransform); super.paint(g); AffineTransform displayTransform = new AffineTransform(); displayTransform.translate(35, 107); g2d.transform(displayTransform); display.paint(g2d); g2d.setTransform(savedTransform); } else { super.paint(g); g.drawImage(chassisImage, 0, 0, null); if (!glCreated) { glCreated = true; try { org.lwjgl.opengl.Display.create(new PixelFormat(8, 8, 0)); org.lwjgl.opengl.Display.setParent(glPanel); org.lwjgl.opengl.Display.setVSyncEnabled(true); GLMousePollingThread p = new GLMousePollingThread(this, glPanel); p.start(); } catch (LWJGLException e) { throw new RuntimeException(e); } } } } And as my app is OpenGL based, it does not the rotation of the chassis and the view, I'll see if I can fix it. I've already fixed some other problems before: * touches were not working on the simulator when using a GLView. * There were some java instructions missing in the xml that I had to add to cross compile some Scala libraries. Is there any way for me to contribute those fixes? Thanks. Damian On Sun, Jul 18, 2010 at 7:48 PM, Panayotis Katsaloulis < pan...@pa...> wrote: > > On 18 Ιουλ 2010, at 7:28 μ.μ., Damian wrote: > > > 1. Is there any way to put the simulator in landscape? I've tried > this.setStatusBarOrientation(UIInterfaceOrientation.LandscapeLeft) but it > only resizes the window and relocates the acelerometer controls, but does > not rotates the view. > > Did you have a look at Hello World Landscape demo? > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |