summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
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);