Exemplo n.º 1
0
// callback functions for message boxes and assert boxes
DB_MBRETVAL fxMBCallback(SBYTE *pBuffer)
{
	(void)pBuffer;

	if(pie_GetRenderEngine() == ENGINE_GLIDE)
	{
		grSstControl(GR_CONTROL_DEACTIVATE);
	}

	return DBR_USE_WINDOWS_MB;
}
Exemplo n.º 2
0
int main(void)
{
    GrHwConfiguration hwconfig;

    grGlideInit();

    if (grSstQueryHardware(&hwconfig))
    {
        grSstSelect(0);
        grSstWinOpen(0, GR_RESOLUTION_640x480, GR_REFRESH_60Hz,
                     GR_COLORFORMAT_ABGR, GR_ORIGIN_LOWER_LEFT,
                     2, 1);
        grSstControl(GR_CONTROL_DEACTIVATE);
        grGlideShutdown();
    }
    return 0;
}
Exemplo n.º 3
0
static void acquire_function(void)
{
   grSstControl(GR_CONTROL_ACTIVATE);
}
Exemplo n.º 4
0
static void release_function(void)
{
   grSstControl(GR_CONTROL_DEACTIVATE);
}