This commit is contained in:
Clownacy 2020-04-13 13:43:17 +01:00
parent 8fbf3bbecf
commit cbb11e6270
3 changed files with 3 additions and 4 deletions

View file

@ -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: \

View file

@ -1,7 +1,7 @@
#pragma once
#include "../WindowsWrapper.h"
#include "../Attributes.h"
#include "../WindowsWrapper.h"
enum
{

View file

@ -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);