Skip to content

Commit

Permalink
More windows fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiashienzsch committed Sep 30, 2023
1 parent 23bb24f commit f7f30d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/app-emscripten/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static auto mainLoop(void*) -> void;
int main(int, char**)
{
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_GAMECONTROLLER) != 0) {
std::fprintf(stderr, "Error: {}\n", SDL_GetError());
std::fprintf(stderr, "Error: %s\n", SDL_GetError());
return -1;
}

Expand Down
3 changes: 2 additions & 1 deletion src/ta/ui/window/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <GLFW/glfw3.h>
#include <GLFW/glfw3native.h>

#include <cstdio>
#include <cstdlib>
#include <optional>
#include <string>
Expand Down Expand Up @@ -37,7 +38,7 @@ struct WindowPimpl

static auto errorCallback(int error, char const* description) -> void
{
print(stderr, "Error: {} {}\n", error, description);
std::fprintf(stderr, "Error: %d %s\n", error, description);
}

static auto useWindowUserPtr(GLFWwindow* backend, auto callback) -> void
Expand Down

0 comments on commit f7f30d6

Please sign in to comment.