1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-28 07:23:13 -04:00

make pixels_per_point optional in RawInput (default 1)

This commit is contained in:
Emil Ernerfeldt
2020-05-20 21:19:42 +02:00
parent 3022231e4f
commit 896d87c804
3 changed files with 5 additions and 6 deletions

View File

@@ -37,7 +37,6 @@ impl State {
fn run(&mut self, raw_input: RawInput) -> Result<Output, JsValue> {
let everything_start = now_sec();
let pixels_per_point = raw_input.pixels_per_point;
self.ctx.begin_frame(raw_input);
let mut ui = self.ctx.fullscreen_ui();
@@ -87,7 +86,7 @@ impl State {
bg_color,
batches,
self.ctx.texture(),
pixels_per_point,
self.ctx.pixels_per_point(),
)?;
emigui_wasm::save_memory(&self.ctx); // TODO: don't save every frame