# this part was written only me.
include(CheckFunctionExists)
-
# Use cmake if enabled.
SET_PROPERTY(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
SET_PROPERTY(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
# Build Flags
-
-find_package(Gettext)
-include_directories(${GETTEXT_INCLUDE_PATH})
-include(compile_gettext_catalogue)
-if(GETTEXT_FOUND)
- add_definitions(-DUSE_GETTEXT)
-endif()
+#find_package(Gettext)
+#include_directories(${GETTEXT_INCLUDE_PATH})
+#include(compile_gettext_catalogue)
+#if(GETTEXT_FOUND)
+# add_definitions(-DUSE_GETTEXT)
+#endif()
find_package(Freetype)
#ifndef SCREEN_HEIGHT_ASPECT
#define SCREEN_HEIGHT_ASPECT SCREEN_HEIGHT
#endif
+#ifndef WINDOW_WIDTH_ASPECT
+#define WINDOW_WIDTH_ASPECT SCREEN_WIDTH
+#endif
+#ifndef WINDOW_HEIGHT_ASPECT
+#define WINDOW_HEIGHT_ASPECT SCREEN_HEIGHT
+#endif
#ifndef WINDOW_WIDTH
#define WINDOW_WIDTH SCREEN_WIDTH_ASPECT
#endif
sRssDir = RSSDIR;
#endif
- setlocale(LC_ALL, "");
- bindtextdomain("messages", sRssDir.c_str());
- textdomain("messages");
- AGAR_DebugLog(AGAR_LOG_DEBUG, "I18N via gettext initialized."); // Will move to Qt;
- AGAR_DebugLog(AGAR_LOG_DEBUG, "I18N resource dir: %s", sRssDir.c_str());
+ //setlocale(LC_ALL, "");
+ //bindtextdomain("messages", sRssDir.c_str());
+ //textdomain("messages");
+ //AGAR_DebugLog(AGAR_LOG_DEBUG, "I18N via gettext initialized."); // Will move to Qt;
+ //AGAR_DebugLog(AGAR_LOG_DEBUG, "I18N resource dir: %s", sRssDir.c_str());
//SDL_Init(SDL_INIT_EVERYTHING | SDL_INIT_TIMER);
#define TMS9918A_VRAM_SIZE 0x4000
#define TMS9918A_LIMIT_SPRITES
#define MAX_DRIVE 1
+#define SCREEN_WIDTH_ASPECT SCREEN_WIDTH
+#define SCREEN_HEIGHT_ASPECT SCREEN_HEIGHT
+#define WINDOW_WIDTH_ASPECT SCREEN_WIDTH
+#define WINDOW_HEIGHT_ASPECT SCREEN_HEIGHT
+
// device informations for win32
#define USE_CART1
#define TMS9918A_VRAM_SIZE 0x4000
#define TMS9918A_LIMIT_SPRITES
///#define MAX_DRIVE 1
+#define SCREEN_WIDTH_ASPECT SCREEN_WIDTH
+#define SCREEN_HEIGHT_ASPECT SCREEN_HEIGHT
+#define WINDOW_WIDTH_ASPECT SCREEN_WIDTH
+#define WINDOW_HEIGHT_ASPECT SCREEN_HEIGHT
// device informations for win32
#define USE_CART1
// for Flappy Limited '85
#define YM2203_PORT_MODE 0x80
+#define SCREEN_WIDTH_ASPECT SCREEN_WIDTH
+#define SCREEN_HEIGHT_ASPECT SCREEN_HEIGHT
+#define WINDOW_WIDTH_ASPECT SCREEN_WIDTH
+#define WINDOW_HEIGHT_ASPECT SCREEN_HEIGHT
+
// device informations for win32
#define USE_CART1
#define USE_CART2
#define HAS_MB8876
#define HAS_RP5C15
#define DATAREC_SOUND
+#define SCREEN_WIDTH_ASPECT SCREEN_WIDTH
+#define SCREEN_HEIGHT_ASPECT SCREEN_HEIGHT
+#define WINDOW_WIDTH_ASPECT 640
+#define WINDOW_HEIGHT_ASPECT 480
// memory wait
#define Z80_MEMORY_WAIT
#define I8259_MAX_CHIPS 1
#endif
+#define SCREEN_WIDTH_ASPECT SCREEN_WIDTH
+#define SCREEN_HEIGHT_ASPECT SCREEN_HEIGHT
+#define WINDOW_WIDTH_ASPECT 640
+#define WINDOW_HEIGHT_ASPECT 480
+
// memory wait
#define Z80_MEMORY_WAIT
#define Z80_IO_WAIT
#define MAX_DRIVE 4
#define HAS_MB8876
#endif
+#define SCREEN_WIDTH_ASPECT SCREEN_WIDTH
+#define SCREEN_HEIGHT_ASPECT SCREEN_HEIGHT
+#define WINDOW_WIDTH_ASPECT 640
+#define WINDOW_HEIGHT_ASPECT 480
// device informations for win32
#if defined(_MZ700)
#define MAX_DRIVE 4
#endif
+#define SCREEN_WIDTH_ASPECT SCREEN_WIDTH
+#define SCREEN_HEIGHT_ASPECT SCREEN_HEIGHT
+#define WINDOW_WIDTH_ASPECT 640
+#define WINDOW_HEIGHT_ASPECT 480
+
// device informations for win32
#define USE_TAPE
#define USE_TAPE_PTR
#define SCREEN_HEIGHT 400
#define CPU_CLOCKS 3580000
#endif
+// 4:3
+#define SCREEN_WIDTH_ASPECT SCREEN_WIDTH
+#define SCREEN_HEIGHT_ASPECT SCREEN_HEIGHT
+#define WINDOW_WIDTH_ASPECT 640
+#define WINDOW_HEIGHT_ASPECT 480
// device informations for virtual machine
#define FRAMES_PER_SEC 60
#define SUPPORT_VARIABLE_TIMING
// 4:3
-#define SCREEN_WIDTH_ASPECT 400
-#define SCREEN_HEIGHT_ASPECT 300
+#define SCREEN_WIDTH_ASPECT 640
+#define SCREEN_HEIGHT_ASPECT 400
+#define WINDOW_WIDTH_ASPECT 640
+#define WINDOW_HEIGHT_ASPECT 480
// device informations for win32
// device informations for win32
#if defined(_PC8001SR)
#endif
// 4:3
-#define SCREEN_WIDTH_ASPECT 400
-#define SCREEN_HEIGHT_ASPECT 300
+#define SCREEN_WIDTH_ASPECT 640
+#define SCREEN_HEIGHT_ASPECT 400
+#define WINDOW_WIDTH_ASPECT 640
+#define WINDOW_HEIGHT_ASPECT 480
#if defined(_PC9801) || defined(_PC9801E)
#define SUPPORT_CMT_IF
#define MEMORY_ADDR_MAX 0x10000
#define MEMORY_BANK_SIZE 0x200
#define IO_ADDR_MAX 0x10000
+#define SCREEN_WIDTH_ASPECT SCREEN_WIDTH
+#define SCREEN_HEIGHT_ASPECT SCREEN_HEIGHT
+#define WINDOW_WIDTH_ASPECT 256
+#define WINDOW_HEIGHT_ASPECT 192
// device informations for win32
#define USE_BOOT_MODE 2
#endif
// 4:3
-#define SCREEN_WIDTH_ASPECT 400
-#define SCREEN_HEIGHT_ASPECT 300
+#define SCREEN_WIDTH_ASPECT 640
+#define SCREEN_HEIGHT_ASPECT 400
+#define WINDOW_WIDTH_ASPECT 640
+#define WINDOW_HEIGHT_ASPECT 480
+
// device informations for win32
#define USE_SPECIAL_RESET
#ifdef _X1TURBO_FEATURE