[PATCH 1/2][try 2] wined3d: Make device palettes dynamically allocated.

Alexander Dorofeyev alexd4 at inbox.lv
Wed Mar 26 17:23:04 CDT 2008


Now allocated as array of pointers.

Alexandre Julliard wrote:
 > You should be using an array of pointers, not a single array for all
 > palettes, so that you don't need to move around the whole data on each
 > realloc.

---
  dlls/wined3d/device.c          |   82 +++++++++++++++++++++++++++++++++++-----
  dlls/wined3d/stateblock.c      |   12 ------
  dlls/wined3d/wined3d_private.h |    6 +-
  3 files changed, 75 insertions(+), 25 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: acdff5a3b1fc709ca1817086540bb1e202582102.diff
Type: text/x-patch
Size: 9364 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080327/ec622c9f/attachment-0001.bin 


More information about the wine-patches mailing list