summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-03-19 14:29:17 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-03-19 18:16:19 (EDT)
commitecceb4f7eebc8204836e164c4ff655e9abbc2636 (patch)
tree876ebf0c308895e22dc7fe3a38e85a60c3eaf932 /src/main.c
parent16283c0018a584a95a2b4a62522918049d945f75 (diff)
downloaddodge-balls-ecceb4f7eebc8204836e164c4ff655e9abbc2636.zip
dodge-balls-ecceb4f7eebc8204836e164c4ff655e9abbc2636.tar.gz
dodge-balls-ecceb4f7eebc8204836e164c4ff655e9abbc2636.tar.bz2
src/defs.h: New macro definitions file
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index c6da24a..daa37f4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -23,6 +23,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include "defs.h"
#include "main.h"
#include "output.h"
@@ -66,7 +67,7 @@ _db_init(void)
_db_window = SDL_CreateWindow("Dodge Balls",
SDL_WINDOWPOS_UNDEFINED,
SDL_WINDOWPOS_UNDEFINED,
- 640, 480, 0);
+ DB_WINDOW_W, DB_WINDOW_H, 0);
if (_db_window == NULL) {
db_err("Failed to create window (%s)", SDL_GetError());
SDL_Quit();
@@ -82,7 +83,7 @@ _db_init(void)
}
_db_texture = SDL_CreateTexture(_db_renderer, SDL_PIXELFORMAT_ARGB8888,
- SDL_TEXTUREACCESS_STATIC, 640, 480);
+ SDL_TEXTUREACCESS_STATIC, DB_WINDOW_W, DB_WINDOW_H);
if (_db_texture == NULL) {
db_err("Failed to create texture (%s)", SDL_GetError());
SDL_DestroyRenderer(_db_renderer);