aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/cursor.cpp
diff options
context:
space:
mode:
authorColin Snover2017-12-03 00:30:43 -0600
committerColin Snover2017-12-03 12:33:05 -0600
commit20b2c1b7e156f0586799f7df9d6e93c757dabeac (patch)
tree39aab0d4c20eb8e4dd3f80bee8cffaad9efdb925 /engines/scumm/cursor.cpp
parent4fbf11db90bec294038fd344936eb895cbe343e1 (diff)
downloadscummvm-rg350-20b2c1b7e156f0586799f7df9d6e93c757dabeac.tar.gz
scummvm-rg350-20b2c1b7e156f0586799f7df9d6e93c757dabeac.tar.bz2
scummvm-rg350-20b2c1b7e156f0586799f7df9d6e93c757dabeac.zip
SDL: Fix memory corruption when switching to/from 32-bit cursors
When a 32-bit cursor has the same size as an 8- or 16-bit cursor, the mouse surfaces were not being regenerated even though the 32-bit cursors have a different memory requirement. This lead to memory corruption as an inappropriate surface would be used for the other type of cursor. The shoe-horned 32-bit cursor support is clearly showing its scrappy nature here and probably ought to be revisited in the future if the SurfaceSdl graphics manager sticks around. Fixes Trac#10349, Trac#10350, Trac#10351.
Diffstat (limited to 'engines/scumm/cursor.cpp')
0 files changed, 0 insertions, 0 deletions