Android: Bildschirm-Orientierung geändert??

Previous topic - Next topic

D2O

Hallo,
entlich hatte ich mal wieder Zeit etwas an meinem Ewigkeits Projekt zu Arbeiten, hmm, mit der neuen V14 stimmt unter Android überhaupt nichts mehr mit der Bildschirmausgabe.
Das spiel wird nur kurz im Unteren rechten (Landscabe) ecke angezeigt und verabschiedet sich dann lautlos.
Habe das ganze gleich nochmals mit der V12.308 getestet. Da Funktioniert es.

Nun habe ich einfach mal ein Testprogramm geschrieben in dem einfach ein Rechteck oben links angezeigt werden soll, geht auch mit beiden Versionen,
aber!!
In der V12 ist Orientation 0 im Portraitmodus
In der V14 ist es Landscabemodus??

Was hat sich hier geändert oder ist es ein Bug?
Hier noch der Code dazu:
Code (glbasic) Select
SYSTEMPOINTER TRUE // System Pointer anzeigen/verdecken
AUTOPAUSE TRUE  // Wenn focus verloren, geht es auf Pause
SETTRANSPARENCY RGB(0x00, 0x00, 0x00) // Schwarz = Transparent
ALLOWESCAPE FALSE // ESC Taste zum beenden de/aktiviert



LOCAL winx,winy
LOCAL mx%,my%,mb1%,mb2%
LOCAL modus
modus = 0

GETDESKTOPSIZE winx,winy
SETSCREEN winx,winy,0

WHILE TRUE

MOUSESTATE mx,my,mb1,mb2
IF mb1
INC modus,1
IF modus > 3 THEN modus = 0
SLEEP 300 // nur für den test
ENDIF

  SETORIENTATION modus

F_DRAWSIMPELPOLYSTRETCH(0,0,100,100,RGB(0xff, 0x00, 0x00),RGB(0x00, 0xff, 0x00),RGB(0x00, 0x80, 0xff),RGB(0xff, 0xff, 0x00))

PRINT modus,100,100



SHOWSCREEN

WEND


FUNCTION F_DRAWSIMPELPOLYSTRETCH: l_posx,l_posy,l_width,l_high,l_rgb1,l_rgb2,l_rgb3,l_rgb4

STARTPOLY //0

POLYVECTOR l_posx,l_posy,              l_posx,0,l_rgb1
POLYVECTOR l_posx,l_posy+l_high,  l_posx,l_high,l_rgb2
POLYVECTOR l_posx+l_width,l_posy+l_high, l_posx+l_width,l_high,l_rgb3
POLYVECTOR l_posx+l_width,l_posy, l_posx+l_width,0,l_rgb4

ENDPOLY

ENDFUNCTION

I7 2600K; 8 GB RAM ; Win10 Pro x64 | NVidia GTX 750 TI 2048MB ; Realtec OnBoard Sound;
Lenovo ThinkPad T400: XP Pro
GLB Premium-immer Aktuell

spacefractal

#1
With v12 android extras and v14, you should uses android manifest xml to set the orientation there and don't use SETORIENTATION at all.

This due on Android the default orientation value can been any value in any orientation. That value is automatic set on startup.

On stock v12 without Android Extras, you will face various orientation issues.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

D2O

Ah, danke spacefractal für die Info.
I7 2600K; 8 GB RAM ; Win10 Pro x64 | NVidia GTX 750 TI 2048MB ; Realtec OnBoard Sound;
Lenovo ThinkPad T400: XP Pro
GLB Premium-immer Aktuell