Skip to content

Commit

Permalink
fixed code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Kbz-8 authored Oct 26, 2024
1 parent a7fdb58 commit 53bb936
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/platform/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
#include <core/errors.h>
#include <utils/icon_mlx.h>

#ifndef __MLX_WINDOW_CREATE_FLAGS__
# define __MLX_WINDOW_CREATE_FLAGS__ SDL_WINDOW_VULKAN | SDL_WINDOW_SHOWN
#endif // !__MLX_WINDOW_CREATE_FLAGS__
#ifndef MLX_WINDOW_CREATE_FLAGS
#define MLX_WINDOW_CREATE_FLAGS SDL_WINDOW_VULKAN | SDL_WINDOW_SHOWN
#endif // MLX_WINDOW_CREATE_FLAGS

namespace mlx
{
Expand All @@ -36,7 +36,7 @@ namespace mlx
{
if(title.find("vvaas") != std::string::npos)
core::error::report(e_kind::message, "vvaas est mauvais");
_win = SDL_CreateWindow(title.c_str(), SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, w, h, __MLX_WINDOW_CREATE_FLAGS__);
_win = SDL_CreateWindow(title.c_str(), SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, w, h, MLX_WINDOW_CREATE_FLAGS);
if(!_win)
core::error::report(e_kind::fatal_error, std::string("unable to open a new window, ") + SDL_GetError());
_id = SDL_GetWindowID(_win);
Expand Down

1 comment on commit 53bb936

@xtrm-en
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my bad cutie pie

Please sign in to comment.