about summary refs log tree commit diff
path: root/main.c
diff options
context:
space:
mode:
authorManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2021-07-19 23:46:04 +0100
committerManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2021-07-19 23:46:04 +0100
commit29c076009058ebc2eb3a6ffe4aa11e91e1a8048f (patch)
tree7ead9077810bdfecb20d7df67162d3db3f9908ac /main.c
parentFeature: Added draw instruction implementation (diff)
downloadCHIP8-Emulator-29c076009058ebc2eb3a6ffe4aa11e91e1a8048f.tar.gz
CHIP8-Emulator-29c076009058ebc2eb3a6ffe4aa11e91e1a8048f.tar.bz2
CHIP8-Emulator-29c076009058ebc2eb3a6ffe4aa11e91e1a8048f.zip
Misc: Added screen size defines in the config
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 79ec96c..5269978 100644
--- a/main.c
+++ b/main.c
@@ -14,7 +14,7 @@ int main(int argc, char** argv)
 
 
     SDL_Init(SDL_INIT_VIDEO);
-    SDL_Window * window = SDL_CreateWindow("CHIP8 Emulator", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 64 * PIXEL_RATIO, 32 * PIXEL_RATIO, 0);
+    SDL_Window * window = SDL_CreateWindow("CHIP8 Emulator", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, SCREEN_WIDTH, SCREEN_HEIGHT, 0);
     SDL_Renderer* renderer = SDL_CreateRenderer(window, -1, 0);
     SDL_Texture * texture = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_STREAMING, 64, 32);