Re: [hatari-devel] Wrapper function for setting mouse visibility in GUI

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


I have appended a new patch with a slightly improved version of the function now avoiding unnecessary calls of SDL_ShowCursor(). This patch will cleanly apply to Hatari.

Am 24.07.2024 um 09:28 schrieb Andreas Grabher <andreas_g86@xxxxxxxxxx>:

Hallo all,

I’d like to suggest the appended patch (you might need to merge manually for Hatari). There are two benefits from this:
  • It avoids risky mixing of types (SDL_ShowCursor() takes and returns an int but is used with bools).
  • It makes it easier to port to SDL3 because only one central function in main.c needs to be ported.

Regards,
Andreas

<hatari_cursor.diff>

Attachment: hatari_patch.diff
Description: Binary data



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/