[GTK3] Make GCC happier

This commit is contained in:
Maximilian Mader 2019-10-01 19:56:53 +02:00
parent 517ad73e64
commit bf8ac1f00d
Signed by: Max
GPG Key ID: F71D56A3151C4FB3
3 changed files with 5 additions and 4 deletions

View File

@ -30,10 +30,10 @@ static Rect rect;
static bool vram_viewer_visible = false; static bool vram_viewer_visible = false;
static bool running = true; static bool running = true;
static const size_t tileset_buffer_length = 256 * 192 * 4; #define tileset_buffer_length 256 * 192 * 4
static uint32_t tileset_buffer[tileset_buffer_length] = {0}; static uint32_t tileset_buffer[tileset_buffer_length] = {0};
static const size_t tilemap_buffer_length = 256 * 256 * 4; #define tilemap_buffer_length 256 * 256 * 4
static uint32_t tilemap_buffer[tilemap_buffer_length] = {0}; static uint32_t tilemap_buffer[tilemap_buffer_length] = {0};
static uint8_t pressed_buttons; static uint8_t pressed_buttons;

View File

@ -1,5 +1,3 @@
#include <glib.h>
#include <gio/gio.h>
#include "shader.h" #include "shader.h"
static const char *vertex_shader = "\n\ static const char *vertex_shader = "\n\

View File

@ -2,6 +2,9 @@
#define shader_h #define shader_h
#include <epoxy/gl.h> #include <epoxy/gl.h>
#include <stdbool.h> #include <stdbool.h>
#include <string.h>
#include <glib.h>
#include <gio/gio.h>
typedef struct shader_s { typedef struct shader_s {
GLuint resolution_uniform; GLuint resolution_uniform;