[GTK3] Make GCC happier

This commit is contained in:
Maximilian Mader 2019-10-01 19:56:53 +02:00
parent 4d6ce2b404
commit 0a412f9d95
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 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 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 uint8_t pressed_buttons;

View File

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

View File

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