Skip to content

Commit

Permalink
fix: consistent cursor size across UI
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy-xr committed Oct 17, 2023
1 parent f55180a commit 23b9e60
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions shock2vr/src/gui/gui_script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,11 @@ where
.get_components(cursor, entity_id, world, &self.state)
};
self.last_cursor = None;
let size = vec2(16.0, 16.0);
components.push(GuiComponent::Image {
alpha: 0.5,
position: vec2(self.cursor.x, self.cursor.y),
size: vec2(
0.1 * config.screen_size_in_pixels.x,
0.1 * config.screen_size_in_pixels.y,
),
size,
texture: "cursor.pcx".to_owned(),
});
let render_components = components
Expand Down

0 comments on commit 23b9e60

Please sign in to comment.