CyclePalette crashes if started from pen 0

Report any Hollywood bugs here
Post Reply
User avatar
jPV
Posts: 734
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

CyclePalette crashes if started from pen 0

Post by jPV »

CyclePalette() crashes the whole system on MorphOS (have to do a powerbutton shutdown) if it's started from the pen 0. Haven't tested on other platforms.

Code: Select all

CreatePalette(1, #PALETTE_GRAY8)

; Works
CyclePalette(1, 1, 7)

pal = GetAttribute(#PALETTE, 1, #ATTRPALETTE)
DebugPrint(Unpack(pal))

; Crashes if the start pen is the first one (0)
CyclePalette(1, 0, 7)

pal = GetAttribute(#PALETTE, 1, #ATTRPALETTE)
DebugPrint(Unpack(pal))
User avatar
airsoftsoftwair
Posts: 5856
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: CyclePalette crashes if started from pen 0

Post by airsoftsoftwair »

Code: Select all

- Fix: Memory access fault in CyclePalette()
Post Reply