Example #1
0
void Gfx_ModeNext(void)
{
    GraphicsDevice *device = &gGraphicsDevice;
    device->modeIndex++;
    if (device->modeIndex >= (int)device->validModes.size)
    {
        device->modeIndex = 0;
    }
    Gfx_ModeSet(CArrayGet(&device->validModes, device->modeIndex));
}
Example #2
0
void Gfx_ModePrev(void)
{
    GraphicsDevice *device = &gGraphicsDevice;
    device->modeIndex--;
    if (device->modeIndex < 0)
    {
        device->modeIndex = (int)device->validModes.size - 1;
    }
    Gfx_ModeSet(CArrayGet(&device->validModes, device->modeIndex));
}
Example #3
0
void Gfx_ModeNext(void)
{
	GraphicsDevice *device = &gGraphicsDevice;
	device->modeIndex++;
	if (device->modeIndex >= device->numValidModes)
	{
		device->modeIndex = 0;
	}
	Gfx_ModeSet(&device->validModes[device->modeIndex]);
}
Example #4
0
void Gfx_ModePrev(void)
{
	GraphicsDevice *device = &gGraphicsDevice;
	device->modeIndex--;
	if (device->modeIndex < 0)
	{
		device->modeIndex = device->numValidModes - 1;
	}
	Gfx_ModeSet(&device->validModes[device->modeIndex]);
}
Example #5
0
void Gfx_ModeNext(void)
{
	GraphicsDevice *device = &gGraphicsDevice;
	GraphicsConfig *config = &gConfig.Graphics;
	device->modeIndex++;
	if (device->modeIndex >= device->numValidModes)
	{
		device->modeIndex = 0;
	}
	Gfx_ModeSet(config, &device->validModes[device->modeIndex]);
}
Example #6
0
void Gfx_ModePrev(void)
{
	GraphicsDevice *device = &gGraphicsDevice;
	GraphicsConfig *config = &gConfig.Graphics;
	device->modeIndex--;
	if (device->modeIndex < 0)
	{
		device->modeIndex = device->numValidModes - 1;
	}
	Gfx_ModeSet(config, &device->validModes[device->modeIndex]);
}