aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2023-10-22 09:08:40 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2023-10-22 09:08:40 +0530
commit9b6b14d2502abdd825975052c5619c4dbfaa9141 (patch)
tree96845f563f259672880e8f0f419d73276bc19f4c /src/main.cpp
parenteb6adb4b212cd55f8e6a553ecdcffa2f8a7cc63a (diff)
use constant
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 7e7d90a..b3e9dc0 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -5,6 +5,8 @@
#include "chip8.hpp"
#include "platform.hpp"
+#define WINDOW_TITLE "chip8emu"
+
int main(int argc, char** argv) {
if (argc != 4) {
std::cerr << "Usage: " << argv[0] << " <Scale> <Delay> <ROM>\n";
@@ -16,7 +18,7 @@ int main(int argc, char** argv) {
char const* filename = argv[3];
Platform platform(
- "chip8emu",
+ WINDOW_TITLE,
VIDEO_WIDTH * videoScale,
VIDEO_HEIGHT * videoScale,
VIDEO_WIDTH, VIDEO_HEIGHT