Menu

#233 Changes to support OS/2 port

v0.9.32
open
os/2 (1)
7
2024-07-06
2023-05-12
No

Per discussions with Elbert Pol, it looks like some adjustments are needed to support an OS/2 port of Tux Paint

Plugin filenames

Magic tool plugin filenames cannot exceed 8 characters (they will be truncated, e.g. "mosaic_shaped" as "mosaic_s.dll", causing Tux Paint to fail to find internal functions)

Export functions

__declspec(dllexport) prepended to (I assume only external-facing) function prototypes.
This could be used:

#ifdef __OS2__
#  define TX_EXTERN __declspec(dllexport)
#else
#  define TX_EXTERN
#endif

...
TX_EXTERN int somemagic_init(magic_api *);

Small mouse cursor

Elbert reports "I see a small stick as mouse pointer thats mostly hidden". I suggested trying CURSOR_SHAPES:=SMALL in Makefile.

Others?

TBD

Discussion

  • William Kendrick

    • Group: v0.9.30 --> v0.9.31
     
  • William Kendrick

    • Group: v0.9.31 --> v0.9.32
     
  • William Kendrick

    I've pinged Elbert to see what state things are in (it's been about a year since we chatted!)

     
  • William Kendrick

    • labels: --> os/2
     
  • William Kendrick

    0.9.33 will include some changes and, so far, modifications to Mirror/Flip plugin that should allow it to run. All remaining Magic tools will need similar modifications.
    * Add TX_EXTERN prefix to all other public Magic tool functions
    * Rename all other magic tool source files to have shorter filenames. ;(

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.