Skip to content

Display and control your Android device

Remove HiDPI compilation flag

Romain Vimont9826c5c4a4d1
diff --git a/app/meson.build b/app/meson.build
index d230702e..c2a59741 100644
--- a/app/meson.build
+++ b/app/meson.build
@@ -118,9 +118,6 @@ conf.set('DEFAULT_LOCAL_PORT_RANGE_LAST', '27199')
# overridden by option --bit-rate
conf.set('DEFAULT_BIT_RATE', '8000000') # 8Mbps
-# enable High DPI support
-conf.set('HIDPI_SUPPORT', get_option('hidpi_support'))
-
# run a server debugger and wait for a client to be attached
conf.set('SERVER_DEBUGGER', get_option('server_debugger'))
diff --git a/app/src/screen.c b/app/src/screen.c
index aa6f32b7..93c059e6 100644
--- a/app/src/screen.c
+++ b/app/src/screen.c
@@ -269,10 +269,9 @@ screen_init(struct screen *screen, struct video_buffer *vb,
struct size window_size = get_initial_optimal_size(content_size,
params->window_width,
params->window_height);
- uint32_t window_flags = SDL_WINDOW_HIDDEN | SDL_WINDOW_RESIZABLE;
-#ifdef HIDPI_SUPPORT
- window_flags |= SDL_WINDOW_ALLOW_HIGHDPI;
-#endif
+ uint32_t window_flags = SDL_WINDOW_HIDDEN
+ | SDL_WINDOW_RESIZABLE
+ | SDL_WINDOW_ALLOW_HIGHDPI;
if (params->always_on_top) {
#ifdef SCRCPY_SDL_HAS_WINDOW_ALWAYS_ON_TOP
window_flags |= SDL_WINDOW_ALWAYS_ON_TOP;
diff --git a/meson_options.txt b/meson_options.txt
index b962380c..66ad5b25 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -3,6 +3,5 @@ option('compile_server', type: 'boolean', value: true, description: 'Build the s
option('crossbuild_windows', type: 'boolean', value: false, description: 'Build for Windows from Linux')
option('prebuilt_server', type: 'string', description: 'Path of the prebuilt server')
option('portable', type: 'boolean', value: false, description: 'Use scrcpy-server from the same directory as the scrcpy executable')
-option('hidpi_support', type: 'boolean', value: true, description: 'Enable High DPI support')
option('server_debugger', type: 'boolean', value: false, description: 'Run a server debugger and wait for a client to be attached')
option('server_debugger_method', type: 'combo', choices: ['old', 'new'], value: 'new', description: 'Select the debugger method (Android < 9: "old", Android >= 9: "new")')