Palette Manipulation doesn´t work with BeginDoubleBuffer

Report any Hollywood bugs here
Post Reply
User avatar
fingus
Posts: 269
Joined: Fri Sep 16, 2011 9:53 am

Palette Manipulation doesn´t work with BeginDoubleBuffer

Post by fingus »

As the Title says, Palette Manipulations like InvertPalette, ModulatePalette..etc doesn´t work/have effect when BegindoubleBuffer was installed previously.
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Palette Manipulation doesn´t work with BeginDoubleBuffer

Post by airsoftsoftwair »

Don't understand that one. InvertPalette() and ModulatePalette() operate on a palette object so calling them won't affect the current display in any way. In order to change the palette of a display, you need to call SetPalette().
User avatar
fingus
Posts: 269
Joined: Fri Sep 16, 2011 9:53 am

Re: Palette Manipulation doesn´t work with BeginDoubleBuffer

Post by fingus »

airsoftsoftwair wrote: Sat Nov 20, 2021 2:49 pm you need to call SetPalette().
Ok, that was the fault.
Post Reply