Replacing OS4 functions for OS3.x
If you know a replacement of at least one function below, post it here.
This way we could together make NetSurf for 68k with proper GUI. EDIT: This thread should have been better in Coders. C/C++ section. Code:
amiga/tree.c:45:31: graphics/blitattr.h: No such file or directory |
Code:
COMPILE: amiga/schedule.c |
Code:
COMPILE: amiga/menu.c |
Code:
COMPILE: amiga/gui.c |
Code:
COMPILE: amiga/font_scan.c |
Code:
COMPILE: amiga/dt_anim.c |
Code:
COMPILE: amiga/bitmap.c |
IDCMP_EXTENDEDMOUSE -> used for wheel movement. Check if program already handles RAWKEY codes 0x7a / 0x7b. If yes, just remove the EXTENDEDMOUSE handling. If not, see Aminet/newmouse.lha for instructions.
WINDOW_NewMouse -> create menus with gadtools/CreateMenus, LayoutMenus, then use WINDOW_Menu instead. tv_secs/tv_micro -> see devices/timer.h, replace struct TimerRequest by struct timerrequest. ActivateLayoutGadget -> #include proto/layout.h GetSysTime/AddTime > see tv_secs/tv_micro AllocSysObject(ASOT_PORT) -> replace by CreateMsgPort() AllocSysObject(ASOT_IOREQUEST) -> replace by CreateIORequest() SYS_Input/Output, NP_Name -> #include dos/dostags.h struct BackFillMessage -> see autodocs of layers/InstallLayerHook MEMF_PRIVATE -> replace by MEMF_ANY IDoMethod -> replace by DoMethod, #include clib/alib_protos.h and link with -lamiga FOpen/FClose -> replace by Open and Close GetInterface -> not needed, remove it. Remove also the declarations of struct #?IFace *I#? RAWKEY_#? -> replace by the actual hex codes (0x45 for RAWKEY_ESC and so on) IsMinListEmpty -> MinList->mlh_Head->mln_Succ == 0 GetHead/GetSucc -> make your own functions to traverse a struct List/struct Node. (note well: they return NULL if they find Node->ln_Succ pointing to the dummy node) SetMem -> replace my memset |
LM_ADDCHILD -> use SetGadgetAttrs(layout,win,NULL,LAYOUT_AddChild,child,TAG_END) instead.
LM_REMOVECHILD -> use SetGadgetAttrs(layout,win,NULL,LAYOUT_RemoveChild,child,TAG_END) instead. int32 -> replace by LONG uint32 -> replace by ULONG int16 -> replace by WORD uint16 -> replace by UWORD int8 -> replace by BYTE uint8 -> replace by UBYTE AllocVecTags -> replace by AllocVec with appropiate MEMF_#? |
Quote:
|
Hello
see here how to implement do method() WITHOUT using amiga.lib http://www.amigaimpact.org/forums/to...lpha-domethod/ |
How's in going arti? I assume you're working on the non-SDL version now?
:) |
Sorry for the OT, but 7 posts of error messages... just :shocked
(maybe pre-filter for unique problematic function calls next time...) |
@NovaCoder
Working hard to get this sucker compiled. :spin I got throught amiga/tree.c so far. I wasn't sure what to do with WINDOW_NewMenu so I commented it. :guru Maybe you have sugetions ? |
Any progress? :)
I would be happy to betatest, I've 040 and 060 in my LAN. |
Quote:
|
Quote:
e.g.: //OS4support file: #ifndef OS4SUPPORT_H #define OS4SUPPORT_H 1 //insert here the OS4 equivalents //types #define int32 LONG #define int16 WORD #define uint16 WORD #define int8 BYTE #define uint8 UBYTE //here rawkey codes #define RAWKEY_79 0x79 //functions #define IDoMethod DoMethod #endif |
I was was doing it like you say,
don't worry ;) Still to do : font code and gui.c (biggest file) |
Awesome, keep up the good work Arti :)
|
Anybody knows how to replace OpenOutlineFont ?
|
All times are GMT +2. The time now is 19:25. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.