[dx8-34 bis] too many things for a subject ;)
Alexandre Julliard
julliard at winehq.org
Sat May 17 13:37:52 CDT 2003
Raphaël Junqueira <fenix at club-internet.fr> writes:
> Index: d3d8_private.h
> ===================================================================
> RCS file: /home/wine/wine/dlls/d3d8/d3d8_private.h,v
> retrieving revision 1.26
> diff -u -r1.26 d3d8_private.h
> --- d3d8_private.h 14 May 2003 19:33:35 -0000 1.26
> +++ d3d8_private.h 17 May 2003 15:32:24 -0000
> @@ -55,10 +55,11 @@
> #include "d3d8.h"
>
> /* Device caps */
> +#define MAX_PALETTES 256
> #define MAX_STREAMS 16
> #define MAX_ACTIVE_LIGHTS 8
> #define MAX_CLIPPLANES D3DMAXUSERCLIPPLANES
> -#define MAX_LEVELS 256
> +#define MAX_LEVELS 256
>
> /* Other useful values */
> #define HIGHEST_RENDER_STATE 174
> @@ -272,13 +273,16 @@
> float lightPosn[MAX_ACTIVE_LIGHTS][4];
> float lightDirn[MAX_ACTIVE_LIGHTS][4];
>
> + /* palettes texture management */
> + PALETTEENTRY palettes[MAX_PALETTES][256];
> + UINT currentPalette;
I applied the patch, but you will really need to allocate that thing
dynamically. Reserving 256Kb for palette data is a bit too much (not
to mention that MAX_PALETTES should be 65536 if I read the doc
correctly).
--
Alexandre Julliard
julliard at winehq.com
More information about the wine-devel
mailing list