annotate vidix/mga_crtc2_vid.c @ 30790:9f30c9cb599b

Fix crashes in CreatePalette by fixing the LOGPALETTE struct. CreatePalette had problems for me, and looking at the code it was quite obvious why; someone had reversed the order of the two elements of the LOGPALETTE struct, causing it to allocate and copy a bogus amount of memory. Why on earth anybody would want to do that is beyond me; whoever did it even left a comment, but it wasn't very helpful, as it crashed nevertheless. :-)
author sesse
date Thu, 04 Mar 2010 15:31:54 +0000
parents 1e215be6a749
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
25561
1e215be6a749 Get rid of build system hackery to generate mga_crtc2_vid.o and rage128_vid.o.
diego
parents:
diff changeset
1 #define CRTC2
1e215be6a749 Get rid of build system hackery to generate mga_crtc2_vid.o and rage128_vid.o.
diego
parents:
diff changeset
2
1e215be6a749 Get rid of build system hackery to generate mga_crtc2_vid.o and rage128_vid.o.
diego
parents:
diff changeset
3 #include "mga_vid.c"