SDL2 sources, progress and ports
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 548 from 2004/4/15
    I am missing the SDL_ttf.h in the SDK.
    Did I miss something?
    regards
    eliot
  • »23.02.21 - 19:41
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    beworld
    Posts: 421 from 2010/2/10
    From: FRANCE
    Oh.... sorry

    I fix that and upload new archive

    Missing SDL_mixer.h, SDL_net.h, SDL2_ttf.h, SDL2_image.h and SDL2 gfx... mm


    Quote:

    eliot a écrit :
    I am missing the SDL_ttf.h in the SDK.
    Did I miss something?
    IMac G5 2.1,PowerMac 2.7,PowerBook 1.5
    My MOS ports
  • »23.02.21 - 20:49
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 548 from 2004/4/15
    Perfect, thx!
    regards
    eliot
  • »23.02.21 - 20:56
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 548 from 2004/4/15
    IngaSdl2 Engine is working well with your sdl2 port:
    inga1.png
    inga2.png

    What is worth to mention from my side:
    1. SDL_CreateRenderer with SDL_RENDERER_ACCELERATED or SDL_RENDERER_PRESENTVSYNC did not work. I needed to use SDL_RENDERER_SOFTWARE.

    2. SDL_GetBasePath did not add the path separator at the end
    see documentation:
    * This returns an absolute path in UTF-8 encoding, and is guaranteed to
    * end with a path separator ('\\' on Windows, '/' most other places).

    Thx again beworld for the SDL2 port!

    [ Edited by eliot 25.02.2021 - 08:28 ]
    regards
    eliot
  • »25.02.21 - 08:27
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    beworld
    Posts: 421 from 2010/2/10
    From: FRANCE
    You can use 0, SDL2 chooses the first RENDERER available

    I take note of your remarks, thank you
    IMac G5 2.1,PowerMac 2.7,PowerBook 1.5
    My MOS ports
  • »25.02.21 - 13:16
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 548 from 2004/4/15
    @beworld:

    just one more remark:
    SDL_SetCursor and SDL_ShowCursor do not have any effect on morphos currently.
    On Linux and Max the cursor changes when running Ermentrud, but on mos the mouse cursor does not change.
    regards
    eliot
  • »26.02.21 - 10:26
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    beworld
    Posts: 421 from 2010/2/10
    From: FRANCE
    @eliot

    What do you send to SDL_CreateCursor ?

    do you have any sample code that i can reproduce the problem?

    Thanks
    IMac G5 2.1,PowerMac 2.7,PowerBook 1.5
    My MOS ports
  • »26.02.21 - 10:49
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 548 from 2004/4/15
    Inga is using a surface, see:
    https://github.com/eliot-exdev/inga-sdl-1/blob/master/sources/Cursor.c

    But maybe there is something else wrong, I will have a look into it.
    On other systems it's working, but this means nothing.
    regards
    eliot
  • »26.02.21 - 10:56
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    beworld
    Posts: 421 from 2010/2/10
    From: FRANCE
    ok i check if i see something...


    [ Edité par beworld 26.02.2021 - 17:46 ]
    IMac G5 2.1,PowerMac 2.7,PowerBook 1.5
    My MOS ports
  • »26.02.21 - 14:23
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    tolkien
    Posts: 376 from 2013/5/29
    Quote:

    eliot escribió:
    @beworld:

    just one more remark:
    SDL_SetCursor and SDL_ShowCursor do not have any effect on morphos currently.
    On Linux and Max the cursor changes when running Ermentrud, but on mos the mouse cursor does not change.


    I think I had the same problem when trying to port protracker clone.
    PowerMac G5 - PowerBook G4 - MacMini with MorphOS. Amiga 1200/060 AmigaOS 3.x
  • »26.02.21 - 17:29
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    beworld
    Posts: 421 from 2010/2/10
    From: FRANCE
    I dont have this problem with OpenTTD and ScummVM here.
    Maybe .bmp is wrong format, i dont know for now....
    IMac G5 2.1,PowerMac 2.7,PowerBook 1.5
    My MOS ports
  • »26.02.21 - 17:56
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    beworld
    Posts: 421 from 2010/2/10
    From: FRANCE
    I dont have this problem with OpenTTD and ScummVM here.
    Maybe .bmp is wrong format, i dont know for now....
    IMac G5 2.1,PowerMac 2.7,PowerBook 1.5
    My MOS ports
  • »26.02.21 - 17:56
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 548 from 2004/4/15
    Hm, strange.
    Which format are you using in Scumm and Openttd?
    regards
    eliot
  • »26.02.21 - 18:41
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    beworld
    Posts: 421 from 2010/2/10
    From: FRANCE
    After some time, i think you right, we have a bug with no-system cursor.....
    I try to see with BSzili if we can fix that.

    In ScummVM or OpenTTD, they dont use directly SDL_CreateCursor...
    IMac G5 2.1,PowerMac 2.7,PowerBook 1.5
    My MOS ports
  • »26.02.21 - 20:30
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 548 from 2004/4/15
    From which branch you are currently bulding the
    libs and the sdk? Maybe I can have a look
    into that.
    regards
    eliot
  • »26.02.21 - 21:30
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    beworld
    Posts: 421 from 2010/2/10
    From: FRANCE
    all code is here :

    https://github.com/BSzili/SDL/tree/mos-sdl2/src/video/amiga


    When you call SDL_CretaCursor, all seem pass here :
    https://github.com/BSzili/SDL/blob/mos-sdl2/src/video/amiga/SDL_amigamouse.c#L55

    I try to look in SDK, we have an example in Intuition "argbpointer.c"

    Thanks
    IMac G5 2.1,PowerMac 2.7,PowerBook 1.5
    My MOS ports
  • »27.02.21 - 05:37
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 548 from 2004/4/15
    Hi,
    yes the call seems to be ok, but nothing happens (mouse pointer does not change).
    I will also have a look into the code.
    regards
    eliot
  • »27.02.21 - 06:30
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    beworld
    Posts: 421 from 2010/2/10
    From: FRANCE
    Yeah !!! i think i find :

    https://github.com/BSzili/SDL/blob/mos-sdl2/src/video/amiga/SDL_amigamouse.c#L61

    In SDK example, it's not same, i try to use Object and it's working now :-)
    Need more test, and i update repository
    IMac G5 2.1,PowerMac 2.7,PowerBook 1.5
    My MOS ports
  • »27.02.21 - 06:44
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 548 from 2004/4/15
    Yeah, sounds great!
    regards
    eliot
  • »27.02.21 - 08:40
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    beworld
    Posts: 421 from 2010/2/10
    From: FRANCE
    Ok you can find on storage new archive with fix.
    Thanks again
    IMac G5 2.1,PowerMac 2.7,PowerBook 1.5
    My MOS ports
  • »28.02.21 - 06:33
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 548 from 2004/4/15
    Thx beworld,you are the man! It's working fine now with Ermentrud/Inga.
    regards
    eliot
  • »28.02.21 - 09:09
    Profile