Skip to content

Commit 2c1003c

Browse files
committed
enable new browser config
1 parent 592131e commit 2c1003c

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

src/CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ target_sources(DxLib
7171
DxThread.cpp
7272
)
7373

74+
target_compile_definitions(DxLib
75+
PRIVATE
76+
PROXY_TO_PTHREAD
77+
)
78+
7479
set_target_properties(DxLib
7580
PROPERTIES
7681
COMPILE_FLAGS "-sUSE_FREETYPE=1 -pthread -fwasm-exceptions"

src/DxCompileConfig.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,18 @@
4949
#define DX_NON_MOVIE
5050

5151
// BMP画像の読み込み機能がいらない方は次のコメントを外してください
52-
// #define DX_NON_BMPREAD
52+
#define DX_NON_BMPREAD
5353

5454
// TGA画像の読み込み機能がいらない方は次のコメントを外してください
5555
// #define DX_NON_TGA
5656

5757
// JPEG画像の読みこみ機能がいらない方は次のコメントを外してください
5858
// ※DxUseCLib.lib も再コンパイルする必要があります
59-
// #define DX_NON_JPEGREAD
59+
#define DX_NON_JPEGREAD
6060

6161
// PNG画像の読みこみ機能がいらない方は次のコメントを外してください
6262
// ※DxUseCLib.lib も再コンパイルする必要があります
63-
// #define DX_NON_PNGREAD
63+
#define DX_NON_PNGREAD
6464

6565
// TIFF画像の読みこみ機能がいらない方は次のコメントを外してください
6666
// ※DxUseCLib.lib も再コンパイルする必要があります
@@ -82,7 +82,7 @@
8282
//#define DX_NON_ACM
8383

8484
// 標準 WAVE ファイルを使用しない方は次のコメントを外してください
85-
// #define DX_NON_WAVE
85+
#define DX_NON_WAVE
8686

8787
// DirectShow を使用した MP3 ファイルのデコードを行わない場合は次のコメントをはずしてください
8888
//#define DX_NON_DSHOW_MP3
@@ -163,7 +163,7 @@
163163
//#define DX_NON_FONT
164164

165165
// ブラウザ依存のフォント描画機能を有効にする場合は次のコメントを外して下さい
166-
// #define DX_USE_BROWSER_FONT
166+
#define DX_USE_BROWSER_FONT
167167

168168
// サウンド再生機能( ソフトウエアサウンド、MIDI含む )を無効にする場合は次のコメントを外して下さい
169169
//#define DX_NON_SOUND

src/DxSoundConvert.h

-3
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,6 @@ struct SOUNDCONV
109109
int OggVorbisBitDepth ; // OggVorbis使用時のビット深度(1:8bit 2:16bit)
110110
int OggVorbisFromTheoraFile ; // Ogg Theora ファイル中の Vorbis データを参照するかどうかのフラグ( TRUE:Theora ファイル中の Vorbis データを参照する )
111111
#endif
112-
#ifdef EMSCRIPTEN
113-
int BufferId;
114-
#endif
115112
} ;
116113

117114
// サウンド変換処理全体で使用するデータ構造体

src/DxUseCLib.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@
5050
#ifndef DX_NON_PNGREAD
5151
#include "png.h"
5252
// #include "pngpriv.h"
53-
#include "zlib.h"
5453
#endif
5554

55+
#include "zlib.h"
56+
5657
#ifndef DX_NON_JPEGREAD
5758
#ifdef DX_GCC_COMPILE
5859
typedef unsigned char boolean;

0 commit comments

Comments
 (0)