|
|
|
@ -1,3 +1,5 @@ |
|
|
|
|
#define _POSIX_C_SOURCE 200809l |
|
|
|
|
|
|
|
|
|
#include <stdio.h> |
|
|
|
|
#include <unistd.h> |
|
|
|
|
#include <SDL2/SDL.h> |
|
|
|
@ -5,10 +7,8 @@ |
|
|
|
|
#include "api/api.h" |
|
|
|
|
#include "renderer.h" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SDL_Window *window; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static double get_scale(void) |
|
|
|
|
{ |
|
|
|
|
float dpi; |
|
|
|
@ -16,7 +16,6 @@ static double get_scale(void) |
|
|
|
|
return 1.0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static void get_exe_filename(char *buf, int sz) |
|
|
|
|
{ |
|
|
|
|
char path[512]; |
|
|
|
@ -25,7 +24,6 @@ static void get_exe_filename(char *buf, int sz) |
|
|
|
|
buf[len] = '\0'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static void init_window_icon(void) |
|
|
|
|
{ |
|
|
|
|
// FIXME: include inside function!?
|
|
|
|
|