mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove simpleservo antialiasing option, rely on pref
This commit is contained in:
parent
9174b201b0
commit
1b0de562ed
4 changed files with 3 additions and 12 deletions
|
@ -30,8 +30,7 @@ use servo::euclid::{Point2D, Rect, Scale, Size2D, Vector2D};
|
|||
use servo::keyboard_types::{Key, KeyState, KeyboardEvent};
|
||||
use servo::msg::constellation_msg::TraversalDirection;
|
||||
use servo::script_traits::{TouchEventType, TouchId};
|
||||
use servo::servo_config::opts;
|
||||
use servo::servo_config::{pref, set_pref};
|
||||
use servo::servo_config::{opts, pref};
|
||||
use servo::servo_url::ServoUrl;
|
||||
use servo::webrender_api::units::DevicePixel;
|
||||
use servo::webrender_api::ScrollLocation;
|
||||
|
@ -62,7 +61,6 @@ pub struct InitOptions {
|
|||
pub coordinates: Coordinates,
|
||||
pub density: f32,
|
||||
pub xr_discovery: Option<webxr::Discovery>,
|
||||
pub enable_subpixel_text_antialiasing: bool,
|
||||
pub gl_context_pointer: Option<*const c_void>,
|
||||
pub native_display_pointer: Option<*const c_void>,
|
||||
pub native_widget: *mut c_void,
|
||||
|
@ -227,11 +225,6 @@ pub fn init(
|
|||
) -> Result<(), &'static str> {
|
||||
resources::set(Box::new(ResourceReaderInstance::new()));
|
||||
|
||||
set_pref!(
|
||||
gfx.subpixel_text_antialiasing.enabled,
|
||||
init_opts.enable_subpixel_text_antialiasing
|
||||
);
|
||||
|
||||
if let Some(prefs) = init_opts.prefs {
|
||||
add_user_prefs(prefs);
|
||||
}
|
||||
|
|
|
@ -243,7 +243,6 @@ pub struct CInitOptions {
|
|||
pub width: i32,
|
||||
pub height: i32,
|
||||
pub density: f32,
|
||||
pub enable_subpixel_text_antialiasing: bool,
|
||||
pub vslogger_mod_list: *const *const c_char,
|
||||
pub vslogger_mod_size: u32,
|
||||
pub native_widget: *mut c_void,
|
||||
|
@ -446,7 +445,6 @@ unsafe fn init(
|
|||
prefs,
|
||||
density: opts.density,
|
||||
xr_discovery: None,
|
||||
enable_subpixel_text_antialiasing: opts.enable_subpixel_text_antialiasing,
|
||||
gl_context_pointer: gl_context,
|
||||
native_display_pointer: display,
|
||||
native_widget: opts.native_widget,
|
||||
|
|
|
@ -9,7 +9,8 @@
|
|||
"_comment": "settings specific to Hololens/UWP builds",
|
||||
"devtools.server.enabled": true,
|
||||
"dom.webxr.enabled": true,
|
||||
"shell.homepage": "https://servo.org/hl-home/"
|
||||
"shell.homepage": "https://servo.org/hl-home/",
|
||||
"gfx.subpixel-text-antialiasing.enabled": false
|
||||
},
|
||||
"vr": {
|
||||
"_comment": "settings specific to VR builds",
|
||||
|
|
|
@ -200,7 +200,6 @@ Servo::Servo(std::optional<hstring> initUrl, hstring args, GLsizei width,
|
|||
o.width = mWindowWidth;
|
||||
o.height = mWindowHeight;
|
||||
o.density = dpi;
|
||||
o.enable_subpixel_text_antialiasing = false;
|
||||
o.native_widget = eglNativeWindow;
|
||||
|
||||
// Note about logs:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue