1
0
Fork 0

Remove GFX_SetPalette

After move to SDL2, this function is no longer useful.
This commit is contained in:
Patryk Obara 2019-12-22 04:30:35 +01:00 committed by Patryk Obara
parent 5df38b5cdc
commit 0d108a7df5
3 changed files with 0 additions and 12 deletions

View file

@ -30,13 +30,6 @@ typedef enum {
typedef void (*GFX_CallBack_t)( GFX_CallBackFunctions_t function );
struct GFX_PalEntry {
Bit8u r;
Bit8u g;
Bit8u b;
Bit8u unused;
};
#define GFX_CAN_8 0x0001
#define GFX_CAN_15 0x0002
#define GFX_CAN_16 0x0004
@ -55,7 +48,6 @@ struct GFX_PalEntry {
#define GFX_CAN_RANDOM 0x4000 //If the interface can also do random access surface
void GFX_Events(void);
void GFX_SetPalette(Bitu start,Bitu count,GFX_PalEntry * entries);
Bitu GFX_GetBestMode(Bitu flags);
Bitu GFX_GetRGB(Bit8u red,Bit8u green,Bit8u blue);
Bitu GFX_SetSize(Bitu width,Bitu height,Bitu flags,double scalex,double scaley,GFX_CallBack_t cb);

View file

@ -49,7 +49,6 @@ static void Check_Palette(void) {
Bitu i;
switch (render.scale.outMode) {
case scalerMode8:
GFX_SetPalette(render.pal.first,render.pal.last-render.pal.first+1,(GFX_PalEntry *)&render.pal.rgb[render.pal.first]);
break;
case scalerMode15:
case scalerMode16:

View file

@ -1029,9 +1029,6 @@ void GFX_EndUpdate( const Bit16u *changedLines ) {
}
}
void GFX_SetPalette(Bitu start,Bitu count,GFX_PalEntry * entries) {
}
Bitu GFX_GetRGB(Bit8u red,Bit8u green,Bit8u blue) {
switch (sdl.desktop.type) {
case SCREEN_SURFACE: