mirror of
https://github.com/love2d/love.git
synced 2026-08-19 04:06:17 +02:00
Merged rude/love into vertexshader/default
This commit is contained in:
@@ -63,6 +63,8 @@ Window::_currentMode::_currentMode()
|
|||||||
bool Window::setWindow(int width, int height, bool fullscreen, bool vsync, int fsaa)
|
bool Window::setWindow(int width, int height, bool fullscreen, bool vsync, int fsaa)
|
||||||
{
|
{
|
||||||
bool mouseVisible = getMouseVisible();
|
bool mouseVisible = getMouseVisible();
|
||||||
|
int keyrepeatDelay, keyrepeatInterval;
|
||||||
|
SDL_GetKeyRepeat(&keyrepeatDelay, &keyrepeatInterval);
|
||||||
|
|
||||||
// We need to restart the subsystem for two reasons:
|
// We need to restart the subsystem for two reasons:
|
||||||
// 1) Special case for fullscreen -> windowed. Windows XP did not
|
// 1) Special case for fullscreen -> windowed. Windows XP did not
|
||||||
@@ -87,6 +89,7 @@ bool Window::setWindow(int width, int height, bool fullscreen, bool vsync, int f
|
|||||||
// Set caption.
|
// Set caption.
|
||||||
setWindowTitle(windowTitle);
|
setWindowTitle(windowTitle);
|
||||||
setMouseVisible(mouseVisible);
|
setMouseVisible(mouseVisible);
|
||||||
|
SDL_EnableKeyRepeat(keyrepeatDelay, keyrepeatInterval);
|
||||||
|
|
||||||
// Set GL attributes
|
// Set GL attributes
|
||||||
SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8);
|
SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8);
|
||||||
|
|||||||
Reference in New Issue
Block a user