ptitSeb / friking-shark

Port of Friking Shark (remake of Flying Shark) on the OpenPandora, Odroid and most Linux. Also with AmigaOS4 support. Status: Working (using gl4es).
https://boards.openpandora.org/topic/5600375-friking-shark/
Other
11 stars 0 forks source link

Render issue in window mode #22

Open midzer opened 8 months ago

midzer commented 8 months ago

Hi @ptitSeb

I am working on a web port of friking shark right now.

Game works so far, but I have issues with rendering the game in windowed view (I prefer to not have FullScreen enabled by default):

The MainMenu entries are overlapping the viewport, that means they are not scaled. When I click on Options for example the positioning is correct.

Same overlapping for New Game dialog.

Funny thing is: when I switch to FullScreen with STRG+ALT+ENTER from MainMenu positioning of the viewport is wrong, too. But when I enter Options afterwards, the text of Options dialog is presented in full height -> correctly.

I have not tested whether this is coming from Emscripten, but I doubt it. I've ported some game already and not had this kinda issue yet.

I have set

System="GameGUI"
Class="CGameGUIManager"
Name="GUIManager"
Data
{
Screen
{
    FullScreen=0
    WindowReferenceSystem=1
    CenterWindow=0
    VerticalSync=0
    Resolution
    {   
        w=640
        h=480
    }
    WindowRect
    {
        w=640
        h=480
    }
}
}

and are now continueing to figure out whats going wrong...

Have a nice weekend midzer