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)); }
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)); }
void Gfx_ModeNext(void) { GraphicsDevice *device = &gGraphicsDevice; device->modeIndex++; if (device->modeIndex >= device->numValidModes) { device->modeIndex = 0; } Gfx_ModeSet(&device->validModes[device->modeIndex]); }
void Gfx_ModePrev(void) { GraphicsDevice *device = &gGraphicsDevice; device->modeIndex--; if (device->modeIndex < 0) { device->modeIndex = device->numValidModes - 1; } Gfx_ModeSet(&device->validModes[device->modeIndex]); }
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]); }
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]); }