Enable text anti-aliasing by default

To disable it, use -noantialias command-line option.
This commit is contained in:
kichikuou
2020-06-04 10:24:39 +09:00
parent a0396679a6
commit 81d66c4075
5 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ root = true
[*]
charset = utf-8
[*.{h,c}]
[*.{h,cpp}]
indent_style = tab
indent_size = 4
+3 -3
View File
@@ -24,7 +24,7 @@ This is a SDL2 port of [System3 for Win32](http://takeda-toshiya.my.coocan.jp/al
### Windows (MSYS2 mingw64)
$ pacman -S cmake mingw-w64-x86_64-cmake mingw-w64-x86_64-SDL2 mingw-w64-x86_64-SDL2_ttf
$ pacman -S mingw-w64-x86_64-cmake mingw-w64-x86_64-SDL2 mingw-w64-x86_64-SDL2_ttf
$ mkdir -p out/debug
$ cd out/debug
$ cmake -G"MSYS Makefiles" -DCMAKE_BUILD_TYPE=Debug ../../src/
@@ -51,8 +51,8 @@ system3 [options]
### Options
#### `-antialias`
Enables text anti-aliasing.
#### `-noantialias`
Disables text anti-aliasing.
#### `-fontfile` _filename_
Specifies a font file used to render text. `.ttf` and `.otf` files are supported.
@@ -60,7 +60,7 @@ class GameActivity : SDLActivity() {
}
override fun getArguments(): Array<String> {
return arrayOf("-antialias",
return arrayOf(
"-gamedir", intent.getStringExtra(EXTRA_GAME_ROOT),
"-savedir", intent.getStringExtra(EXTRA_SAVE_DIR) + "/@")
}
+2 -2
View File
@@ -40,8 +40,8 @@ int main(int argc, char *argv[])
for (int i = 1; i < argc; i++) {
if (strcmp(argv[i], "-gamedir") == 0)
chdir(argv[++i]);
else if (strcmp(argv[i], "-antialias") == 0)
ags_setAntialiasedStringMode(1);
else if (strcmp(argv[i], "-noantialias") == 0)
ags_setAntialiasedStringMode(0);
else if (strcmp(argv[i], "-savedir") == 0)
save_dir = argv[++i];
else if (strcmp(argv[i], "-fontfile") == 0)
+1 -1
View File
@@ -9,7 +9,7 @@
#include "utfsjis.h"
#include "texthook.h"
static bool antialias = false;
static bool antialias = true;
void AGS::draw_text(const char* string)
{