Commit be34ad90 authored by Robert Sprowson's avatar Robert Sprowson Committed by ROOL
Browse files

Fix to invalidate entire tile cache

A hardwired 18 in reset_all_tiling_sprites meant that one slot was never cleared, so a change in the Wimp's sprite pool could leave a cached sprite pointer pointing to something invalid.
Ref https://www.riscosopen.org/forum/forums/5/topics/16708

Version 5.83. Tagged as 'Wimp-5_83'
parent 0148e0ea
...@@ -9,12 +9,12 @@ ...@@ -9,12 +9,12 @@
GBLS Module_ApplicationDate GBLS Module_ApplicationDate
GBLS Module_HelpVersion GBLS Module_HelpVersion
GBLS Module_ComponentName GBLS Module_ComponentName
Module_MajorVersion SETS "5.82" Module_MajorVersion SETS "5.83"
Module_Version SETA 582 Module_Version SETA 583
Module_MinorVersion SETS "" Module_MinorVersion SETS ""
Module_Date SETS "13 Sep 2021" Module_Date SETS "13 Sep 2021"
Module_ApplicationDate SETS "13-Sep-21" Module_ApplicationDate SETS "13-Sep-21"
Module_ComponentName SETS "Wimp" Module_ComponentName SETS "Wimp"
Module_FullVersion SETS "5.82" Module_FullVersion SETS "5.83"
Module_HelpVersion SETS "5.82 (13 Sep 2021)" Module_HelpVersion SETS "5.83 (13 Sep 2021)"
END END
/* (5.82) /* (5.83)
* *
* This file is automatically maintained by srccommit, do not edit manually. * This file is automatically maintained by srccommit, do not edit manually.
* *
*/ */
#define Module_MajorVersion_CMHG 5.82 #define Module_MajorVersion_CMHG 5.83
#define Module_MinorVersion_CMHG #define Module_MinorVersion_CMHG
#define Module_Date_CMHG 13 Sep 2021 #define Module_Date_CMHG 13 Sep 2021
#define Module_MajorVersion "5.82" #define Module_MajorVersion "5.83"
#define Module_Version 582 #define Module_Version 583
#define Module_MinorVersion "" #define Module_MinorVersion ""
#define Module_Date "13 Sep 2021" #define Module_Date "13 Sep 2021"
...@@ -16,6 +16,6 @@ ...@@ -16,6 +16,6 @@
#define Module_ComponentName "Wimp" #define Module_ComponentName "Wimp"
#define Module_FullVersion "5.82" #define Module_FullVersion "5.83"
#define Module_HelpVersion "5.82 (13 Sep 2021)" #define Module_HelpVersion "5.83 (13 Sep 2021)"
#define Module_LibraryVersionInfo "5:82" #define Module_LibraryVersionInfo "5:83"
...@@ -609,7 +609,7 @@ reset_all_tiling_sprites ROUT ...@@ -609,7 +609,7 @@ reset_all_tiling_sprites ROUT
Debug tiling, "Reset tiling to", r1 Debug tiling, "Reset tiling to", r1
adrl r3,tile_sprites adrl r3,tile_sprites
add r4,r3,#TileInfo * 18 ; 16 background tiles + menu tile + temp tile add r4,r3,#tile_sprites_end - tile_sprites
00 str r1,[r3,#TileInfo_SpritePtr] ; set the sprite pointer 00 str r1,[r3,#TileInfo_SpritePtr] ; set the sprite pointer
......
...@@ -1651,7 +1651,9 @@ errortitend # 0 ...@@ -1651,7 +1651,9 @@ errortitend # 0
[ ThreeDPatch [ ThreeDPatch
tile_sprites # TileInfo * 16 tile_sprites # TileInfo * 16
menu_tile_sprite # TileInfo menu_tile_sprite # TileInfo
ibar_tile_sprite # TileInfo
temp_tile_sprite # TileInfo temp_tile_sprite # TileInfo
tile_sprites_end # 0
] ]
[ Swapping [ Swapping
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment