WinCE program upside-down on landscape WM Smartphone

Previous topic - Next topic

BasicMe

I'm developing a program for a Windows Mobile smartphone, and it's playing upside-down on the phone.

I'm using a 320x240 landscape-oriented Samsung Code (like a Blackberry, but with Windows Mobile 6.1).  I'm using the latest version of GLBasic, version 7.206, created a project at 320x240, and using the WinCE builder.

Other than being upside-down, the program runs fine!

To try to fix it, I'm currently doing a GRABSPRITE on each final screen image, and then ROTOSPRITE it 180 degrees.  But this slows down the program substantially.  It also doesn't fix the fact that the GLBasic default "Loading..." text is upside-down when the program launches.

Is there an easy/efficient way to fix this?

Kitty Hello

Huh!? I'll have to investigate. Would be bad.

BasicMe

For clarification, when I create a GLBasic project at 240x320, here's how it appears on the phone:

And when I create a 320x240 project, here's how it appears:

(These are just mock-ups, not actual photos, but you get the idea.)

I don't know if this auto-rotation between portrait & landscape modes is being done by GLBasic or the Smartphone itself.  All I know is it's rotating the wrong way in landscape.  :(

BasicMe

Mine is an SGH-i220, which is 320x240.  I'm curious what results you get, though, especially since it's another Samsung device.

But here's a new wrinkle...

I just updated GLBasic to the latest version 7.230, and now I can't compile *anything* for WinCE!  I can still compile to other OS's (like Win32, iPhone, GP2X), but when I try WinCE, I get this message:

Quote
compile+link:
/cygdrive/Q/Compiler/platform/WinCE/Lib/libGLBasic.a(glb-full.o)(.text+0xaea4):glb-full.cpp: undefined reference to `environ'
*** FATAL ERROR - Please post this output in the forum
I've tried different resolutions like 320x240, 240x320, and even 320x320...but I always get the same error.  :(

Kitty Hello

Can you post the ErrorLog.txt from the temp directory of the mobile phone?

BasicMe

Quote from: Ocean on 2010-Jan-14
The error in the compiling & linking phase on the pc.  Currently, we can't get stuff compiled, so there's nothing to test on or copy from a WinCE device.
Ditto.  Note that compiling worked fine in build 7.206.  The problem started in the 7.230 build.

Kitty Hello

Thanks for the feedback. Welcome to Windows Mobile ;)

BasicMe

Quote from: Ocean on 2010-Jan-21
got my Samsung SGH-i780 smartphone today.   Compiled with GLB 7.242 (with WinCE project setting and selecting the correct 320x320 screen resolution), the RotoSprite demo was displayed correctly.
I just updated to 7.242, and WinCE programs are compiling & running properly again.  Thanks!

However, the original issue of 320x240 widescreen programs running upside-down remains.  :(  Gernot, I was wondering if there was an easy way to offer a "rotate 180 degrees" option when compiling for Windows CE?

I could see this being beneficial not only to widescreen devices, but even for portrait devices like Pocket PCs or standard candybar smartphones.  For example, when compiling a 320x240 widescreen program for a 240x320 portrait device (like the WM emulator), the program is rotated 90 degrees counter-clockwise to fit the screen.  But having the option to rotate the screen *clockwise* instead might be more useful to right-handed users.

This is more of a feature request than a bug.  :)  Is this something that could be relatively easy to implement?

Kitty Hello

Yikes. The rotate-a-screen function is quite old and it was not my favourite to write back then ;)
I'll have a look when there's time.

BasicMe


Hatonastick

I would like to warn members who have posted in this thread that there is too much winking going on.  Please limit your usage of winks to maybe 1 or 2 per thread -- or maybe 3 if there is a really good reason.  In this case there isn't and I am going to have to caution both of you.

This has been a unauthorized non-administrative announcement.  Thank you.

;)

BasicMe

Quote from: Hatonastick on 2010-Jan-24
I would like to warn members who have posted in this thread that there is too much winking going on.  Please limit your usage of winks to maybe 1 or 2 per thread -- or maybe 3 if there is a really good reason.  In this case there isn't and I am going to have to caution both of you.

This has been a unauthorized non-administrative announcement.  Thank you.

;)
It's a facial ;) tic, and I'm ;) a little sensitive about it ;) if you don't mind. ;)