mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-09-22 22:58:12 +03:00
Enable text anti-aliasing by default
To disable it, use -noantialias command-line option.
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ root = true
|
||||
[*]
|
||||
charset = utf-8
|
||||
|
||||
[*.{h,c}]
|
||||
[*.{h,cpp}]
|
||||
indent_style = tab
|
||||
indent_size = 4
|
||||
|
||||
|
||||
@@ -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
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user