[Video[ Rename grGetGammaTableExt to gfxGetGammaTableExt

This commit is contained in:
zilmar 2017-07-20 17:44:45 +10:00
parent bd904ede5a
commit f4b3678773
4 changed files with 5 additions and 6 deletions

View File

@ -1207,7 +1207,7 @@ static void GetGammaTable()
voodoo.gamma_table_r = new FxU32[voodoo.gamma_table_size]; voodoo.gamma_table_r = new FxU32[voodoo.gamma_table_size];
voodoo.gamma_table_g = new FxU32[voodoo.gamma_table_size]; voodoo.gamma_table_g = new FxU32[voodoo.gamma_table_size];
voodoo.gamma_table_b = new FxU32[voodoo.gamma_table_size]; voodoo.gamma_table_b = new FxU32[voodoo.gamma_table_size];
grGetGammaTableExt(voodoo.gamma_table_size, voodoo.gamma_table_r, voodoo.gamma_table_g, voodoo.gamma_table_b); gfxGetGammaTableExt(voodoo.gamma_table_size, voodoo.gamma_table_r, voodoo.gamma_table_g, voodoo.gamma_table_b);
} }
void write_png_file(const char* file_name, int width, int height, uint8_t *buffer) void write_png_file(const char* file_name, int width, int height, uint8_t *buffer)

View File

@ -1678,13 +1678,12 @@ void gfxLoadGammaTable(FxU32 nentries, FxU32 *red, FxU32 *green, FxU32 *blue)
{ {
} }
FX_ENTRY void FX_CALL void gfxGetGammaTableExt(FxU32 nentries, FxU32 *red, FxU32 *green, FxU32 *blue)
grGetGammaTableExt(FxU32 nentries, FxU32 *red, FxU32 *green, FxU32 *blue)
{ {
return; return;
//TODO? //TODO?
/* /*
LOG("grGetGammaTableExt()\r\n"); LOG("gfxGetGammaTableExt()\r\n");
FxU16 aGammaRamp[3][256]; FxU16 aGammaRamp[3][256];
#ifdef _WIN32 #ifdef _WIN32
HDC hdc = GetDC(NULL); HDC hdc = GetDC(NULL);

View File

@ -1974,8 +1974,7 @@ void gfxLoadGammaTable(FxU32 /*nentries*/, FxU32 *red, FxU32 *green, FxU32 *blue
CorrectGamma(aGammaRamp); CorrectGamma(aGammaRamp);
} }
FX_ENTRY void FX_CALL void gfxGetGammaTableExt(FxU32 /*nentries*/, FxU32 *red, FxU32 *green, FxU32 *blue)
grGetGammaTableExt(FxU32 /*nentries*/, FxU32 *red, FxU32 *green, FxU32 *blue)
{ {
WriteTrace(TraceGlitch, TraceDebug, "-"); WriteTrace(TraceGlitch, TraceDebug, "-");
FxU16 aGammaRamp[3][256]; FxU16 aGammaRamp[3][256];

View File

@ -66,6 +66,7 @@ FxBool gfxLfbWriteRegion(GrBuffer_t dst_buffer, FxU32 dst_x, FxU32 dst_y, GrLfbS
FxU32 gfxTexCalcMemRequired(GrLOD_t lodmin, GrLOD_t lodmax, GrAspectRatio_t aspect, GrTextureFormat_t fmt); FxU32 gfxTexCalcMemRequired(GrLOD_t lodmin, GrLOD_t lodmax, GrAspectRatio_t aspect, GrTextureFormat_t fmt);
void gfxEnable(GrEnableMode_t mode); void gfxEnable(GrEnableMode_t mode);
void gfxLoadGammaTable(FxU32 nentries, FxU32 *red, FxU32 *green, FxU32 *blue); void gfxLoadGammaTable(FxU32 nentries, FxU32 *red, FxU32 *green, FxU32 *blue);
void gfxGetGammaTableExt(FxU32 /*nentries*/, FxU32 *red, FxU32 *green, FxU32 *blue);
extern uint32_t nbTextureUnits; extern uint32_t nbTextureUnits;
extern uint32_t g_scr_res_x, g_scr_res_y, g_res_x, g_res_y; extern uint32_t g_scr_res_x, g_scr_res_y, g_res_x, g_res_y;