Article View: comp.os.os2.programmer
Article #3410Palette Manager bug (SAVEBITS doesn't save palette)
From: Steven Hayes
Date: Sat, 09 Jan 1993 14:15
Date: Sat, 09 Jan 1993 14:15
25 lines
1419 bytes
1419 bytes
Hi Netters, I'm sure this has been posted about before, but I couldn't remeber the solution to the problem, so... I've been writing a image viewing program for OS/2 2.0 which uses the palette manager. Its pretty simple at the moment - displays pgm format images of any size and 'depth' and lets you scroll around the image in a window. Everything was whoopy (sassi, froody ;-) until I added a menu to the window. Now when a drop-down menu goes away the portion of the client area obscured by the menu gets redrawn with an incorrect palette. The only repaint messages that don't work properly are when the obscuring window uses the SAVEBITS option (which doesn't actually cause a WM_PAINT message to get sent, instead the window 'remembers' what is was covering) So, what do I have to do to insure that SAVEBITS redraws work with the correct palette entries? Cheers Steve -- Steven Hayes | steveh@rmit.edu.au Royal Melbourne Institute of Technology (RMIT) | +61 3 660-2693
Technical Details
Message-ID:
<16330@goanna.cs.rmit.oz.au>Path:
arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!escargot!goanna!stevehShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!escargot!goanna!steveh From: steveh@goanna.cs.rmit.oz.au (Steven Hayes) Newsgroups: comp.os.os2.programmer Subject: Palette Manager bug (SAVEBITS doesn't save palette) Message-ID: <16330@goanna.cs.rmit.oz.au> Date: 9 Jan 93 14:15:42 GMT Organization: Comp Sci, RMIT, Melbourne, Australia Lines: 25