[PATCH 4/6] wined3d: Make code safe if there are no device palettes.

Alexander Dorofeyev alexd4 at inbox.lv
Sun Mar 9 09:10:25 CDT 2008


There are two types of palettes in wined3d: directx <= 7 style palettes as 
separate interface and d3d >= 8 style device palettes. Some code was defaulting 
to device palettes in several places if there's no "old" style palette and using 
device palettes to store ddraw primary surface's palette. This patch avoids use 
of device palettes for anything else than their direct purpose. It is a 
necessary preparation for making device palettes dynamically allocated as needed 
(next patch), that prevents ddraw apps from crashing with the latter.
---
  dlls/wined3d/palette.c      |   11 ----
  dlls/wined3d/surface.c      |  109 ++++++++++++++++++++++--------------------
  dlls/wined3d/surface_base.c |   20 ++------
  dlls/wined3d/surface_gdi.c  |   51 ++++++++------------
  4 files changed, 82 insertions(+), 109 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 4c2929b18d9fba6435e0e676c1258790bdd8ee2d.diff
Type: text/x-patch
Size: 14278 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080309/788dd90e/attachment-0001.bin 


More information about the wine-patches mailing list