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