struct Palette > typedef Palette
This commit is contained in:
parent
b65e822e26
commit
e6ab6a2d9a
2 changed files with 10 additions and 5 deletions
src/video
|
@ -68,7 +68,7 @@ global VMemType8 Pixels8[256];
|
|||
global VMemType16 Pixels16[256];
|
||||
global VMemType32 Pixels32[256];
|
||||
|
||||
global struct Palette GlobalPalette[256];
|
||||
global Palette GlobalPalette[256];
|
||||
|
||||
local int old_button;
|
||||
local int mouse_x;
|
||||
|
@ -953,7 +953,7 @@ global void WaitEventsAndKeepSync(void)
|
|||
/**
|
||||
** Create palette.
|
||||
*/
|
||||
global void VideoCreatePalette(const struct Palette* palette)
|
||||
global void VideoCreatePalette(const Palette* palette)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
|
|
@ -30,6 +30,7 @@ global unsigned AllocatedGraphicMemory;
|
|||
global unsigned CompressedGraphicMemory;
|
||||
#endif
|
||||
|
||||
#ifndef NEW_VIDEO // { should be removed with new video code final
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
-- Clipping
|
||||
|
@ -1622,13 +1623,15 @@ global void LoadRGB(Palette *pal, const char *name)
|
|||
/**
|
||||
** Create palette.
|
||||
*/
|
||||
global void VideoCreatePalette(const struct Palette* palette)
|
||||
global void VideoCreatePalette(const Palette* palette)
|
||||
{
|
||||
GraphicData * temp = VideoCreateNewPalette(palette);
|
||||
GraphicData * temp;
|
||||
|
||||
temp = VideoCreateNewPalette(palette);
|
||||
// -> Video
|
||||
switch( VideoDepth ) {
|
||||
case 8:
|
||||
Pixels8 = (VMemType8 *)temp;
|
||||
Pixels8 =(VMemType8 *)temp;
|
||||
break;
|
||||
case 15:
|
||||
case 16:
|
||||
|
@ -1646,4 +1649,6 @@ global void VideoCreatePalette(const struct Palette* palette)
|
|||
SetPlayersPalette();
|
||||
}
|
||||
|
||||
#endif // } !NEW_VIDEO
|
||||
|
||||
//@}
|
||||
|
|
Loading…
Add table
Reference in a new issue