[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | AMIGA NOTES |
Notice: | Join us in the *NEW* conference - HYDRA::AMIGA_V2 |
Moderator: | HYDRA::MOORE |
|
Created: | Sat Apr 26 1986 |
Last Modified: | Wed Feb 05 1992 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 5378 |
Total number of notes: | 38326 |
615.0. "Color Swapping" by VIDEO::LEIBOW () Mon Jul 27 1987 08:37
Howdy,
I have a programming question here. I could not find the answer
in any of the Addison-Wesmumble manuals.
I would like to swap the foreground and background colors of a screen
when I don't have a copy of the color map or color table. I have
the following code:
myviewport = (struct ViewPort*) ViewPortAddress(mywindows);
colors = myviewport->ColorMap->ColorTable;
tmp = colors[0];
colors[0] = colors[1];
colors[1] = tmp;
LoadRGB4(myviewport, colors, SOme_STUPID_NUMBER_OF_COLORS);
The problem is this works about half of the time. The other half
of the time, my screen turns real dark and I can't see anything.
Anyone got any ideas on a better way to do this?
Thanks
T.R | Title | User | Personal Name | Date | Lines
|
---|