change header path
parent
f6a64f39b4
commit
3e71b3d5c5
|
@ -1,2 +1,3 @@
|
|||
build/
|
||||
*.swp
|
||||
.cache/
|
||||
|
|
|
@ -26,4 +26,4 @@ add_executable(xormod
|
|||
"xormod.c"
|
||||
)
|
||||
|
||||
target_link_libraries(xormod SDL2::SDL2)
|
||||
target_link_libraries(xormod SDL2)
|
||||
|
|
2
field.c
2
field.c
|
@ -1,6 +1,6 @@
|
|||
|
||||
#include "field.h"
|
||||
#include <SDL.h>
|
||||
#include <SDL2/SDL.h>
|
||||
|
||||
#define SWAP(a, b) ({ \
|
||||
__typeof(a) tmp = (a); \
|
||||
|
|
2
font.c
2
font.c
|
@ -1,6 +1,6 @@
|
|||
#include "EGA8x8.h"
|
||||
|
||||
#include <SDL.h>
|
||||
#include <SDL2/SDL.h>
|
||||
|
||||
SDL_Texture *load_font(SDL_Renderer *renderer) {
|
||||
SDL_Surface *s = SDL_LoadBMP_RW(SDL_RWFromConstMem(font_data, font_data_len), 1);
|
||||
|
|
2
font.h
2
font.h
|
@ -1,6 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#include <SDL.h>
|
||||
#include <SDL2/SDL.h>
|
||||
|
||||
#define RC(r, c) (c)*font_w, (r)*font_h
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include <SDL.h>
|
||||
#include <SDL2/SDL.h>
|
||||
|
||||
typedef struct {
|
||||
int x1;
|
||||
|
|
Loading…
Reference in New Issue