1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-11 13:51:01 -05:00
alacritty/src
Matt Keeler 2434547fce Upgrade Glutin to v0.19.0
Some changes include:

• Use the with_hardware_acceleration function on the ContextBuilder to not require the discrete GPU
• Remove the LMenu and RMenu virtual key codes (winit 0.16.0 removed these because Windows now generates LAlt and RAlt instead
• Replace set_cursor_state with hide_cursor (winit 0.16.0 removed the set_cursor_state function)
• Replace GlWindow::hidpi_factor with GlWindow::get_hidpi_factor and change to expecting an f64
• Use the glutin/winit dpi size and position types where possible

Glutin's dpi change event has been implemented. All size events now
return logical sizes. As a result of that, the logical sizes are translated
in the `display::handle_rezize` method so DPI scaling works correctly.

When the DPI is changed, the glyph cache is updated to make use of the
correct font size again.

Moving a window to a different screen which is a different DPI caused a
racing condition where the logical size of the event was sent to the
`handle_resize` method in `src/display.rs`, however if there was a DPI
change event before `handle_resize` is able to process this message, it
would incorrectly use the new DPI to scale the resize event.

To solve this issue instead of sending the logical size to the
`handle_resize` method and then converting it to a physical size in
there, the `LogicalSize` of the resize event is transformed into a
`PhysicalSize` as soon as it's received. This fixes potential racing
conditions since all events are processed in order.

The padding has been changed so it's also scaled by DPR.

The `scale_with_dpi` config option has been removed. If it's not present
a warning will be emitted.

The `winit` dependency on Windows has been removed. All interactions
with winit in Alacritty are handled through glutin.
2018-11-10 16:08:48 +00:00
..
grid Fix failing test with bench feature 2018-09-29 20:48:24 +00:00
renderer Upgrade Glutin to v0.19.0 2018-11-10 16:08:48 +00:00
term Upgrade Glutin to v0.19.0 2018-11-10 16:08:48 +00:00
tty Add support for Windows (#1374) 2018-10-16 10:02:52 -07:00
ansi.rs Merge master into scrollback 2018-07-28 23:10:13 +00:00
cli.rs Scrollback cleanup 2018-07-21 17:17:41 +00:00
config.rs Upgrade Glutin to v0.19.0 2018-11-10 16:08:48 +00:00
display.rs Upgrade Glutin to v0.19.0 2018-11-10 16:08:48 +00:00
event.rs Upgrade Glutin to v0.19.0 2018-11-10 16:08:48 +00:00
event_loop.rs Add support for Windows (#1374) 2018-10-16 10:02:52 -07:00
index.rs Fix clippy issues 2018-11-04 00:11:51 +00:00
input.rs Upgrade Glutin to v0.19.0 2018-11-10 16:08:48 +00:00
lib.rs Upgrade Glutin to v0.19.0 2018-11-10 16:08:48 +00:00
locale.rs Fix style issues 2018-09-17 23:34:56 +00:00
logging.rs Merge master into scrollback 2018-07-28 23:10:13 +00:00
macros.rs Merge master into scrollback 2018-07-28 23:10:13 +00:00
main.rs Upgrade Glutin to v0.19.0 2018-11-10 16:08:48 +00:00
meter.rs Remove all instances of unwrap() from config 2018-03-04 22:40:15 +00:00
selection.rs Add option to open URLs on click 2018-10-22 19:39:26 +00:00
sync.rs Fix some compiler warnings 2016-09-23 10:12:11 -07:00
util.rs Scrollback cleanup 2018-07-21 17:17:41 +00:00
window.rs Upgrade Glutin to v0.19.0 2018-11-10 16:08:48 +00:00