- 03 Apr, 2015 1 commit
-
-
Robert Sprowson authored
Add xferrecv_last_ref to get hold of the Wimp message id of the request for a scrap file data save, when the RAM transfer gets no reply. This is useful to allow the data save to be distinguished from a file being dragged to an application, without having to resort to string compares against <wimp$scrap>. SWIOptions: Also add RTC to SWI exports, and remove redundant ones. armsys.c: Treat cmd_string as a pointer. xferrecv.c/.h/rl_entries: New function xferrecv_last_ref. Version 5.84. Tagged as 'RISC_OSLib-5_84'
-
- 23 Aug, 2014 1 commit
-
-
Robert Sprowson authored
dbox.c: address of cancelled by dereference event.c: spelling txtar.c: don't grab the caret when clicking toggle size txtedit.c: use BOOL for a boolean win.c: when looking at the behind window handle we want -1 not 'DUD' (which happens to be -1) wimp.h: add comment about window handle -3 Retagged as RISC_OSLib-5_83. Version 5.83. Not tagged
-
- 31 Jul, 2014 1 commit
-
-
Robert Sprowson authored
menu.c/menu.h: Add a new menu_setcolours() function to allow the fore/background colour bits to be set on a menu entry. colourmenu.c: Use the new menu_setcolours() function instead of making assumptions about menu's internal structure layout. dbox.c/dbox.h: New functions dbox_hidefield and dbox_unhidefield added to complement the fade/unfade ones. As dbox_findicon/findiconbefore are only ever used to find writables, rename them as such. Also, make them find writable (type 15) AND writable draggable (type 14) icons. Allow navigation by tab/shift tab through icons like the Style Guide chapter 16 says we should. In fact it's a little odd that dbox is emulating 'Ktar' validation itself manually when the Wimp has done this since version 2.92, but maintaining it is less effort than going and checking all the templates. Fix bug when looking for leading capital letter matches to complete a dbox, the previous code was looking at the cached copy of the icon flags in d->window rather than the ones the Wimp is actually showing on screen (as might have been modified by dbox_fadefield() for example), so it was possible to complete a dbox for an icon which wasn't visible or selectable. Fix bug when looking for leading capital letter matches when the icon doesn't have any text - the template file format is defined as being 0x0D terminated. This would then lead to 'R' and 'S' being accepted as matches having run off the end of the text buffer and into the validation string (which usually contains an 'R' or 'S' validation first). Changed to accept any control terminator. event.c: When force closing the current menu, don't forget to set the two state variables back to 0. fileicon.c/resspr.c/txt1.c/txtundo.c/wimp.c: Use existing pointer type definitions. flex.c: Treat bools as bools and pointers as pointers. Say something useful in an error box if flex fails its internal consistency check, rather than just data aborting. font.c: Remove ROM conditionals from around font_readdef() function, always include the function. fontselect.c: Use font_readdef() rather than local copies of the exact same function. txtedit.c/txtfile.c/txtfind.c/txtedit.h: Remove redundant 'deletepending' state variable, and confusion over 'selectrecent' being a bool. Call os_byte directly rather than passing to os_cli("*FX"). Other minor tidy ups. wimpt.c: Mark messages list as a constant. xferrecv.c: Also preserve the size member while recycling the xferrecv_ack message block, rather than corrupting it as 256. xfersend.c/xfersend.h: Take out the leaf name formulator as a common function for the two places to use it. This also allows the function to return the length of the leaf name so the correct message block size can be used. Inspection with MsgMon/!Reporter was showing that all xfersend initiated saves were passing the leaf name padded to 256 with garbage. Reindent a few functions. Make the draggable sprite replacement follow the same validation string rules as the Wimp, previously only ";s" was accepted, so upper case 'S' and validation strings that start with the sprite validation didn't work. xfersend_pipe() function prototype changed to match xfersend() more closely - not being able to respond to the context of a wimp_eventstr made this function practically unusable. akbd.h: Windows logo and menu keys defined. flex.h/help.h/wimpt.h Some typos in comments. wimp.h: Missing wimp message action codes and structure defs added for completeness. Version 5.83. Not tagged
-
- 08 May, 2014 1 commit
-
-
Robert Sprowson authored
menu.c: if NULL return -1, this has the added advantage that a menu maker (see event_attachmenumaker) can return NULL to mean "no menu thanks" and not data abort in event.c dbox.c: if NULL return 0, this is somewhat consistent with template_syshandle() menu.h: typo in comment corrected Version 5.82. Tagged as 'RISC_OSLib-5_82'
-
- 30 Jun, 2013 1 commit
-
-
Robert Sprowson authored
font.h: missing flags defined (those flags that can be used without needing to change the prototype of font_paint() fontlist.h: comment typo No code changes, retagged as RISC_OSLib-5_77
-
- 13 Nov, 2011 1 commit
-
-
Robert Sprowson authored
Retagged as 5.64.
-
- 06 Dec, 2010 1 commit
-
-
Robert Sprowson authored
Functionality to query, plot, and transform a JPEG file modelled on the functions provided in 'sprite.c/h'. To be used to share more code between !Paint and !Draw. Version 5.59. Tagged as 'RISC_OSLib-5_59'
-
- 30 Nov, 2010 1 commit
-
-
Robert Sprowson authored
Needed by !Paint 2.02. Fix some easy warnings in wimp.c/sprite.c. Add new function (not in the ROM version) 'wimp_baseofromsprites()'. bbc_adval fixed to return -1 when no ADC fitted to match Electron behaviour. Note: the 2 reenabled functions haven't been appended to the table, so anyone who linked a RAM application against 'romastubs' would need to relink. Version 5.58. Tagged as 'RISC_OSLib-5_58'
-
- 31 May, 2009 2 commits
-
-
Peter Naulls authored
Detail: This changes all the C and assembler includes to be a canoncial Unix format. Also match include paths to previous commit for EditIntern/DrawIntern/VerIntern Finally, also include some minor type fixes (NULL vs 0) Admin: May be some other paths elsewhere in the source I'm not immediately able to fix. Will address any issues ASAP, since this is a huge change. Version 5.54. Not tagged
-
Peter Naulls authored
Detail: Parts of RISCOS_Lib use non-standard paths that only really work on native RISC OS compilitation. This moves the relevant files into a more normalized dir.h.file format. Admin: Not tested yet. #include path changes to follow. Version 5.54. Not tagged
-
- 16 Jan, 2003 1 commit
-
-
Ben Avison authored
Detail: * Improved lookup of application Sprites file: uses Wimp_Extend 13 (in Wimps that support it) to work out the appropriate resolution suffix, and prefixes with "<Wimp$IconTheme>" to allow a future Theme Manager to operate. * Preserves attributes of any existing file when saving sprite or text files. * Changed two null menu handles from 0 to (doucmented) -1. Despite the fact that the Wimp is actually happy with 0 as a null handle here, this was reported as a fault. * Changed rlib.c.version to use VersionNum, deleted thereby-obsoleted rlib.h.VerIntern.version file. Not that rlib.c.version seems to be used at the moment. * Added Kevin's additions to the test directory. Admin: Tested briefly. Version 5.44. Not tagged
-
- 23 Aug, 2001 1 commit
-
-
Kevin Bracey authored
* Fixed C library tty so it can output '\b' (backspace). * Made offsetof() and va_arg() macros work with C++. Version 5.34. Tagged as 'RISC_OSLib-5_34'
-
- 29 Oct, 1998 1 commit
-
-
Kevin Bracey authored
A feeble hack to get Edit to display Japanese, plus a more serious attempt that doesn't work, compiled out. Version 4.91. Tagged as 'RISC_OSLib-4_91'
-
- 05 Nov, 1996 1 commit
-
-
Neil Turton authored
-