1. 20 Jul, 2020 1 commit
    • Robert Sprowson's avatar
      Rename clashing CLI macro · 85171512
      Robert Sprowson authored
      The name clashes with the recently added clear IRQ flag macro, CLI, but is only used in a debug case.
      Version 5.77. Not tagged
  2. 08 Jul, 2020 1 commit
  3. 29 Jun, 2020 1 commit
  4. 23 May, 2020 1 commit
  5. 11 May, 2020 1 commit
  6. 02 May, 2020 1 commit
    • Jeffrey Lee's avatar
      Fix delivery of extended scroll requests · b752d15a
      Jeffrey Lee authored
      Extended scroll requests and regular scroll requests share the same
      reason code, but are different sizes. Update calcmessagesize to
      calculate the size of extended scroll messages correctly, so that the
      icon number won't get chopped off when the message is being passed to
      the target task.
      Version 5.73. Tagged as 'Wimp-5_73'
  7. 11 Apr, 2020 1 commit
    • Andy Vawer's avatar
      Allow text to be dragged from writable icons to icon bar icons · 791a168f
      Andy Vawer authored
      Check destination window handle and add destination icon handle if sending message to window handle -2.
      Improve window handle validation (not assuming all -ve handles are invalid, should the RMA move to have top bit set).
      Version 5.72. Tagged as 'Wimp-5_72'
  8. 30 Jan, 2020 1 commit
    • Andy Vawer's avatar
      Fix issue where dragging text from icon caused a crash in foreground task · 1475387a
      Andy Vawer authored
      When releasing claim, use of stale register meant that the foreground task wasn't correctly bouncing Message_Dragging when the pointer moved out of range. Also added a sanity check in get_selected_text so that if for some reason the selection window disappears mid action it will be caught and not cause a crash.
      Version 5.71. Tagged as 'Wimp-5_71'
  9. 25 Jan, 2020 1 commit
  10. 18 Jan, 2020 1 commit
    • Andy Vawer's avatar
      Fix zero page access looking for ptr_ sprite validation · 384a1ec5
      Andy Vawer authored
      On mouse click, check for icon type was incorrect, so trying to apply tests for 'P' validation string/ptr_write on inappropriate icons (eg. sprites), leading to invalid validation string accesses. Correct the test performed.
      Also add 3 further AcceptLoosePointer checks to validation string pointers.
      Version 5.69. Tagged as 'Wimp-5_69'
  11. 04 Jan, 2020 2 commits
    • ROOL's avatar
      Fix lost menu clicks on icons when window partly off screen · 28d1efb9
      ROOL authored
        Don't trap menu clicks on icons when the window isn't fully on-screen.
        Ref https://www.riscosopen.org/forum/forums/4/topics/14961?page=1
        Submission for Clipboard Support bounty.
      Version 5.68. Tagged as 'Wimp-5_68'
    • Jeffrey Lee's avatar
      Add Wimp_Extend 15, "read slot size" · 4610877c
      Jeffrey Lee authored
      Wimp_Extend 15 is equivalent to Wimp_SlotSize,-1,-1, with the exception
      that the sizes returned in R0-R2 are now measured in pages instead of
      bytes. This allows code to accurately read the amount of free memory on
      machines with >2GB of RAM, and provides some future-proofing should we
      ever wish to support tasks with >2GB of RAM (e.g. via a future
      super-jumbo wimpslot, or more likely via sparse/PMP wimpslots, where
      the physical size is larger than the logical size).
      Currently there's no need to provide a page-based call to set the slot
      size (~2GB is fine for the forseeable future), so this call only
      focuses on reading the sizes.
      Version 5.67. Tagged as 'Wimp-5_67'
  12. 18 Dec, 2019 1 commit
    • ROOL's avatar
      Clipboard caret/task fixes · 9cc627ac
      ROOL authored
        In CnPCaret.s
          * Clear any invalid window handles currently stored in caret blocks on Wimp_SetCaretPosition entry
          * Clear R2 on exit if R0=-1,R2=TASK on entry to Wimp_SetCaretPosition
          * If window is not open or able to receive a focus, then return WimpFocus error rather than causing an alignment exception
        In CBTask.s
          A drag to writeable with invalid (eg.rejection due to validation string mismatch or overlong insert) caused ghost caret to be left behind and still deletes the source text.
          * Changed LDR R2,=cbtask_TASK to LDR r2,cbtask3_TASK
          * Ensure cbtask_insert_text_into_icon returns V set on error
          Drag and drop text from icon to non-d&d application, the last message was erroneously sent as DataSaveAck, not Dataload
        Submission for Clipboard Support bounty.
      Version 5.66. Tagged as 'Wimp-5_66'
  13. 14 Dec, 2019 2 commits
  14. 17 Aug, 2019 1 commit
  15. 22 Jun, 2019 1 commit
    • ROOL's avatar
      New Wimp_Extend subreason · 32f2e389
      ROOL authored
        Subreason 14 gives a means to read the validation string from a window/icon that is not in the current task. This is useful for determining whether clipboard operations should be allowed.
        Submission for Clipboard Support bounty.
      Version 5.64. Tagged as 'Wimp-5_64'
  16. 05 Jun, 2019 1 commit
  17. 01 Jul, 2018 1 commit
    • Jeffrey Lee's avatar
      Fix handling of tool sprite palettes in alpha-blended screen modes · 39485b7c
      Jeffrey Lee authored
        s/Wimp10 - Update mastertoactive to force the palette/translation table to be sent through ColourTrans if either &RGB component ordering or alpha blending is in use for the current screen mode. Otherwise, for alpha modes, the alpha channel would typically be left at zero.
        Tested on Raspberry Pi 3
      Version 5.62. Tagged as 'Wimp-5_62'
  18. 18 Mar, 2018 1 commit
    • Robert Sprowson's avatar
      Fix for bad error pointer deleting non existent sprite · 431bcb1a
      Robert Sprowson authored
      Doing *WimpKillSprite _not_there_  had the following behaviour
      Priority   | Sprite exists  Sprite doesn't  Sprite is ROM
      Lo then Hi | Deletes        Bad error ptr   Silence
      Hi then Lo | Deletes        Silence         Silence
      The bad error pointer was caused by an early return if the high priority pool is the ROM sprites (because the earlier failure to find it in the low priority pools set V, and the early return used TEQ, so the error pointer in R0 was the SpriteOp reason code).
      Proceed to try to look up the sprite, even if there's no hope of deleting it, in order to get a valid error message.
      Version 5.61. Tagged as 'Wimp-5_61'
  19. 17 Feb, 2018 1 commit
    • Jeffrey Lee's avatar
      Fix crashes when a Wimp_Poll post-filter causes the Wimp to postpone switching... · 2fb1a8bf
      Jeffrey Lee authored
      Fix crashes when a Wimp_Poll post-filter causes the Wimp to postpone switching to a VFP-enabled task
        s/Wimp07 - In ExitPoll, swap around the order of restoring the FP context and calling the poll post-filter so that the FP context is restored after the post-poll filter has been invoked. Previously, the VFP(+FPA) context would be restored, then the post-poll filter would be invoked. If the post-poll filter was claimed, the Wimp would then scan the pollwords again and most likely decide to switch to a different task. The appslot will then be switched over, and ExitPoll will be invoked again, attempting to restore the VFP/FPA context for that task - potentially causing a crash or other bad things because the VFP context used by the original choice of task is no longer paged in. For FPA this was never really a problem, since the context is stored in the RMA rather than being potentially stored in appspace.
        s/Wimp03 - Add some extra debug out for tracking VFP context management
        Tested on wandboard
        Fixes issue reported on forums, where using the numpad in VFP SciCalc would cause a crash if KeyExtend was loaded:
      Version 5.60. Tagged as 'Wimp-5_60'
  20. 24 Jul, 2017 1 commit
    • Jeffrey Lee's avatar
      Remove startup delay from power saving code · 74a6db0a
      Jeffrey Lee authored
        s/Wimp02 - Get rid of the magic ~30 second delay before the Portable_Speed/Portable_Idle power saving kicks in. The fast/slow thresholds are self-adjusting, and any non-null poll event will kick the system into high speed, so removing the startup delay isn't likely to have any adverse affect on desktop startup time.
        s/Wimp01 - MaxIdleEvents is now redundant, remove it
        Tested on Raspberry Pi 3
        Should resolve issue reported on the forums where RPCEmu thrashes the hosts's CPU for 30 seconds after entering the desktop:
      Version 5.59. Tagged as 'Wimp-5_59'
  21. 11 Apr, 2017 1 commit
    • Robert Sprowson's avatar
      Gate the recache of currentmode · 50eea7b2
      Robert Sprowson authored
      The operations at module init and at Service_PreReset are both implicitly pre desktop, however it is valid to have Service_ModeFileChanged while in the desktop (for example, if selecting a different MDF from !ScrnSetup).
      Gate the one hanging off Service_ModeFileChanged to only act when there are no tasks active (ie. outside the Wimp).
      Fixes problem reported https://www.riscosopen.org/forum/forums/4/topics/9206 with NetSurf redraw.
      Version 5.58. Tagged as 'Wimp-5_58'
  22. 08 Apr, 2017 1 commit
    • ROOL's avatar
      Recache currentmode at the right time · 121acd27
      ROOL authored
        Modification to make the Wimp reread 'currentmode' by calling OS_ReadSysInfo 1 in the following circumstances
        1. On module init (accounts for being softloaded off disc)
        2. At Service_Reset (accounts for any graphics driver starting after it in ROM module order)
        3. When Service_ModeFileChange (new, this catches the new mode selected by an MDF or EDID during !Boot)
        Commoned up these 3 cases into 1 function.
        This restores the design intent that to get the monitor's native resolution it is *not* required to configure the MonitorType=EDID, indeed doing so wouldn't have helped loading EDID off disc if the monitor's data is found to be incorrect and needing overriding.
        Tested on a Pandaboard with MonitorType=Auto and resolution chosen as "Native", resulting in a desktop at the panel resolution.
      Version 5.57. Tagged as 'Wimp-5_57'
  23. 25 Mar, 2017 1 commit
    • Jeffrey Lee's avatar
      Fix use of uninitialised pointer · 4d355e68
      Jeffrey Lee authored
        s/Wimp01 - initwcfda tries to look up the dynamic area name using MsgTrans, so make sure the 'messages' pointer is initialised before we call it
        Tested on iMx6
      Version 5.56. Tagged as 'Wimp-5_56'
  24. 16 Sep, 2016 1 commit
  25. 28 May, 2016 1 commit
    • Jeffrey Lee's avatar
      Remove redundant GET · d336b82f
      Jeffrey Lee authored
        s/Wimp - IO header doesn't appear to be necessary for build, so don't get it
        Tested with PlingSystem build (new "26" machine type aims to be machine-independent, so doesn't define $GetIO)
        Untested at runtime
      Version 5.54. Tagged as 'Wimp-5_54'
  26. 23 May, 2016 1 commit
    • Jeffrey Lee's avatar
      Fix invalid AMB node handle being used when low on memory · 7212561d
      Jeffrey Lee authored
        s/Wimp08s - If OS_AMBControl allocate is asked for a AMB node with a size > 0, but no pages can be claimed, it frees the node and returns an invalid handle (0). Make sure that the Wimp's allocateslot routine is aware of this, so that we don't try passing that bad handle back to AMBControl later on
        s/Iconbar - Use nullptr constant instead of -1 when checking task_slotsize (aka AMB node handle on modern machines)
        Tested on BB-xM
        Fixes abort seen when attempting to start a task with no pages in the free pool
      Version 5.53. Tagged as 'Wimp-5_53'
  27. 08 May, 2016 1 commit
    • Jeffrey Lee's avatar
      Avoid unnecessary remainder calculations · ace2e66f
      Jeffrey Lee authored
        s/Wimp01, s/Wimp02, s/Wimp05, s/Wimp08s, s/Wimp10 - Avoid unnecessary remainder calculations in DivRem macro. Also make more use of DivRem's ability to accept a constant (not a register) as the divisor.
        Tested on Cortex-A15
      Version 5.52. Tagged as 'Wimp-5_52'
  28. 29 Nov, 2015 1 commit
  29. 10 Oct, 2015 1 commit
    • Jeffrey Lee's avatar
      Reinstate Wimp_ClaimFreeMemory · 503570de
      Jeffrey Lee authored
        This restores support for Wimp_ClaimFreeMemory, via having the Wimp manage a small-ish (4MB) DA that is used to satisfy Wimp_ClaimFreeMemory requests. The Wimp will only ever grow the DA, but the DA is shrinkable, so the system should shrink it as necessary should the free pool run too low.
        Options/s/!Default, Options/s/32, Options/s/Ursula - Add DynamicAreaWCF option to control support for the Wimp_ClaimFreeMemory DA. Enable the option for any builds of the module destined for RISC OS 5.
        Options/s/!Debug - New debug option for Wimp_ClaimFreeMemory debugging (mainly DynamicAreaWCF code path)
        Wimp/s/Wimp01 - Add calls to create/destroy DA on startup/shutdown
        Wimp/s/Wimp08s - DA create/destroy implementation. DA is only used if the free pool is a PMP or the Wimp expects kernel free pool locking but the kernel doesn't support it. Modify Wimp_ClaimFreeMemory to use the DA if it's present.
        Tested on Raspberry Pi
        Restores compatibility with software which relies on Wimp_ClaimFreeMemory, e.g. GDraw module (cause of "No free memory" errors reported by many)
        Note that Wimp_ClaimFreeMemory is still considered deprecated and support may be removed in future OS versions.
      Version 5.50. Tagged as 'Wimp-5_50'
  30. 01 Sep, 2015 1 commit
    • Jeffrey Lee's avatar
      Disable Wimp_ClaimFreeMemory if the free pool is a PMP · 9c341e50
      Jeffrey Lee authored
        s/Wimp08s - If the free pool is a PMP, it's fairly safe to say there'll be no logical mapping, so don't allow Wimp_ClaimFreeMemory to succeed. Also cope with OS_Memory 10 potentially being unimplemented - swallow any error it generates, and refuse to claim the free pool.
        Tested on Pandaboard
        Fixes crashes and subsequent OS_ChangeDynamicArea failures caused by software trying to claim the free pool (e.g. FileCore temp buffers).
      Version 5.49. Tagged as 'Wimp-5_49'
  31. 08 Jul, 2015 1 commit
    • Robert Sprowson's avatar
      Only skip ColourTrans calls for 32bpp TBGR · 84a2570c
      Robert Sprowson authored
      The whizzy new TRGB modes can't assume 32bpp sprite data is equivalent to 32bpp palette entries, so must use ColourTrans.
      * Disable the use-in-place optimisation if that's the case
      * Update the comments to reflect this logic more clearly
      Fix bug in non Medusa case, STRB was using the wrong register as the base address.
      Tested briefly with 'Raspberry' theme, unchanged from previous version.
      Version 5.48. Tagged as 'Wimp-5_48'
  32. 15 Nov, 2014 1 commit
    • Robert Sprowson's avatar
      Add ptr_drop to the sprite pool · 50028941
      Robert Sprowson authored
      This is a left handed pointer to signify a drag and drop operation in progress.
      The sprite makes use of the mask to define the hotspot to be the tip of the arrow, for Wimp/SpriteExtends that understand that.
      Propagated the hotspot definition on ptr_write to the other sprite sets, previously it was only in the Iyonix theme.
      Missing ptr_menu and friends added to Morris theme.
      Made file_ffb more distinct from the other system files in Ursula theme.
      Version 5.47. Tagged as 'Wimp-5_47'
  33. 24 Sep, 2014 1 commit
    • Ben Avison's avatar
      Fix to warning · 03ef557b
      Ben Avison authored
        Previous test for include order of Hdr:Services and Hdr:Wimp was broken.
        See HdrSrc 2.46 for the other half of this fix.
      Version 5.46. Tagged as 'Wimp-5_46'
  34. 05 Sep, 2014 1 commit
    • Robert Sprowson's avatar
      Fix for background colour too light on non-bordered icons · e5a8bd07
      Robert Sprowson authored
       Line 991, a register fumble meant the special case check (when the icon background colour equals the window work area colour) always failed so the icon background was lightened.
       Removed unnecessary ADR.
       Function getborder() made more readable by use of symbols instead of magic numbers
      Fixes ticket #395 reported by Paul Reuvers.
      Version 5.45. Tagged as 'Wimp-5_45'
  35. 18 Aug, 2014 1 commit
    • Robert Sprowson's avatar
      Fix for incorrect menu widths in system font · 2487da00
      Robert Sprowson authored
      Width counting of menus in the system font would continue until a control terminator was found, however in the case of a non indirected menu entry of exactly 12 characters there is no terminator, so the menu would be too wide (by however many non terminator bytes happened to follow the menu definition in memory). This would normally end up 16 OS units too wide (because it'd encounter a zero after the menu items flags of the next menu entry).
      Version 5.44. Tagged as 'Wimp-5_44'
  36. 20 Jul, 2014 1 commit
    • Robert Sprowson's avatar
      Add definitions of button types 11/14/15 · 2ddbcbf5
      Robert Sprowson authored
      Button type 11 was added in 1988 so is about time it had a symbol to refer to it in the sources. Added & used said symbols.
      Removed 'DoubleIcon' switch, prototype button type 12.
      Built binary identical module, not tested.
      Version 5.43. Not tagged
  37. 02 Jul, 2014 1 commit
    • Jeffrey Lee's avatar
      Fix G16 modes · d1bdba23
      Jeffrey Lee authored
        s/Wimp02 - With Kernel-5_35-4_79_2_210 and later, the greyscale palette flag updates in real time to reflect the current state of the palette. Therefore we must read the state of the flag before we set our colour palette, otherwise we won't know that we need to apply the greyscale fixup afterwards.
        Tested on BB-xM
      Version 5.43. Tagged as 'Wimp-5_43'
  38. 28 May, 2014 1 commit
    • Robert Sprowson's avatar
      Fix for incorrect names on pinned windows · be7094e5
      Robert Sprowson authored
      The post increment of R14 when looking for a control/space terminator meant that the search for a leafname started one too far along.
      So in the situation where memory contained something like
      the code would pick up the dot and try to use <garbage> as a leafname.
      Submission from Fred Graute.
      Fix for ticket #244.
      Version 5.42. Tagged as 'Wimp-5_42'