[video] rename grSstWinClose to gfxSstWinClose

This commit is contained in:
zilmar 2017-05-22 20:52:09 +10:00
parent 4c62e09b2c
commit 158005ef61
4 changed files with 8 additions and 10 deletions

View File

@ -661,7 +661,7 @@ void ReleaseGfx()
}
// Release graphics
grSstWinClose(gfx_context);
gfxSstWinClose(gfx_context);
GfxInitDone = FALSE;
rdp.window_changed = TRUE;

View File

@ -536,8 +536,7 @@ FX_ENTRY GrContext_t FX_CALL grSstWinOpen(GrColorFormat_t color_format, GrOrigin
return 1;
}
FX_ENTRY FxBool FX_CALL
grSstWinClose(GrContext_t context)
FxBool gfxSstWinClose(GrContext_t context)
{
int i, clear_texbuff = use_fbo;
WriteTrace(TraceGlitch, TraceDebug, "context: %d", context);
@ -579,7 +578,6 @@ grSstWinClose(GrContext_t context)
remove_tex(0, 0xfffffff);
#endif
//*/
#ifdef _WIN32
if (hGLRC)
{

View File

@ -533,7 +533,7 @@ grSstWinOpen(
if ((hGLRC = wglCreateContext(hDC)) == 0)
{
WriteTrace(TraceGlitch, TraceWarning, "wglCreateContext failed!");
grSstWinClose(0);
gfxSstWinClose(0);
return FXFALSE;
}
@ -544,7 +544,7 @@ grSstWinOpen(
if (!wglMakeCurrent(hDC, hGLRC))
{
WriteTrace(TraceGlitch, TraceWarning, "wglMakeCurrent failed!");
grSstWinClose(0);
gfxSstWinClose(0);
return FXFALSE;
}
}
@ -818,8 +818,7 @@ grSstWinOpen(
return 1;
}
FX_ENTRY FxBool FX_CALL
grSstWinClose(GrContext_t context)
FxBool gfxSstWinClose(GrContext_t context)
{
int i;
#ifndef WIN32
@ -1233,7 +1232,7 @@ grGet(FxU32 pname, FxU32 plength, FxI32 *params)
if (!nbTextureUnits)
{
grSstWinOpen(GR_COLORFORMAT_ARGB, GR_ORIGIN_UPPER_LEFT, 2, 1);
grSstWinClose(0);
gfxSstWinClose(0);
}
#ifdef VOODOO1
params[0] = 1;

View File

@ -17,8 +17,9 @@
#include "../GlideExtensions.h"
void gfxClipWindow(FxU32 minx, FxU32 miny, FxU32 maxx, FxU32 maxy);
FxU32 gfxTexMinAddress(GrChipID_t tmu);
void gfxColorMask(FxBool rgb, FxBool a);
FxU32 gfxTexMinAddress(GrChipID_t tmu);
FxBool gfxSstWinClose(GrContext_t context);
extern uint32_t nbTextureUnits;
extern uint32_t g_scr_res_x, g_scr_res_y, g_res_x, g_res_y;