Cleanup
This commit is contained in:
parent
8fbf3bbecf
commit
cbb11e6270
3 changed files with 3 additions and 4 deletions
|
@ -14,11 +14,11 @@
|
|||
|
||||
#include "Window.h"
|
||||
#include "../Rendering.h"
|
||||
#include "../../Attributes.h"
|
||||
#include "../../Main.h"
|
||||
#include "../../Organya.h"
|
||||
#include "../../Profile.h"
|
||||
#include "../../Resource.h"
|
||||
#include "../../Attributes.h"
|
||||
|
||||
#define DO_KEY(GLFW_KEY, BACKEND_KEY) \
|
||||
case GLFW_KEY: \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "../WindowsWrapper.h"
|
||||
#include "../Attributes.h"
|
||||
#include "../WindowsWrapper.h"
|
||||
|
||||
enum
|
||||
{
|
||||
|
|
|
@ -52,12 +52,11 @@ RenderBackend_Surface* RenderBackend_Init(const char *window_title, int screen_w
|
|||
if (window != NULL)
|
||||
{
|
||||
if (fullscreen)
|
||||
{
|
||||
if (SDL_SetWindowFullscreen(window, SDL_WINDOW_FULLSCREEN) < 0)
|
||||
Backend_PrintError("Could not set window to fullscreen: %s", SDL_GetError());
|
||||
}
|
||||
|
||||
window_sdlsurface = SDL_GetWindowSurface(window);
|
||||
|
||||
if (window_sdlsurface != NULL)
|
||||
{
|
||||
framebuffer.sdlsurface = SDL_CreateRGBSurfaceWithFormat(0, window_sdlsurface->w, window_sdlsurface->h, 0, SDL_PIXELFORMAT_RGB24);
|
||||
|
|
Loading…
Add table
Reference in a new issue