Render all windows without border
This commit is contained in:
parent
fbc8b984f2
commit
8dfed5b792
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ Window::Window(int x, int y, int width, int height) :
|
||||||
|
|
||||||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 1);
|
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 1);
|
||||||
|
|
||||||
window_ = SDL_CreateWindow("anbox", x, y, width, height, SDL_WINDOW_OPENGL);
|
window_ = SDL_CreateWindow("anbox", x, y, width, height, SDL_WINDOW_OPENGL | SDL_WINDOW_BORDERLESS);
|
||||||
if (!window_) {
|
if (!window_) {
|
||||||
const auto message = utils::string_format("Failed to create window: %s", SDL_GetError());
|
const auto message = utils::string_format("Failed to create window: %s", SDL_GetError());
|
||||||
BOOST_THROW_EXCEPTION(std::runtime_error(message));
|
BOOST_THROW_EXCEPTION(std::runtime_error(message));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue