Commits (2)
-
Robert Sprowson authored
Previously, a number of errors were contructed as automatic variables then returned to the caller - potentially accessing stale stack area. All error blocks are now held in ROM and cast from there. Error numbers are now not &00000000 or &20202020, using the allocated base - requires 'Common-0_15'. Trimmed some unused debugging code out, saves about 3k. Renamed C++ clashing variables to stop the compiler moaning. Implemented feature request to accept the empty string "" as no font handle in _SetFont calls. At some point, this module needs internationalising. Version 0.31. Tagged as 'Gadgets-0_31'
44aae368 -
Jeffrey Lee authored
Detail: c/ScrollList, c/TextArea - ScrollList_SetFont and TextArea_SetFont now accept font handles instead of just font names. The handles are handled in the same way as the Window module, i.e. the handle will be managed and freed by the TextGadgets modules. Fixes bug #212. c/ScrollList, c/Scrollbar, c/TextArea - Fix handling of Toolbox_ObjectDeleted events. Original code would corrupt the object lists when deleting items, and reallocate much more memory than was actually needed. Fixes bug #214 c/MemMan - Fix grow_handlers to not leave handle_list as NULL if the realloc fails. Fixes bug #216. c/MemMan, c/TextArea, c/TextMan, h/MemMan, h/TextMan - Changed how the 'Handle' type is handled. Instead of MemMan giving out direct pointers to Handle instances, it now gives out identifiers (HandleId). These identifiers are then converted to Handle pointers via get_handle whenever the contents need to be accessed. This allows the handle_list to be safely realloc'd without breaking all the existing Handle pointers. Fixes bug #217 c/MemMan - Reduced HDNLE_GRW_BY from 1000 to 128 to save a bit of memory Admin: Module compiles and runs, but actual functionality is untested. Fixes bugs 212, 214, 216, 217. Version 0.32. Tagged as 'Gadgets-0_32'
62cdc19f
Showing