android: build warnings

This commit is contained in:
ardocrat
2024-05-21 01:40:25 +03:00
parent a34c4eac15
commit 8073fdbef2
4 changed files with 6 additions and 9 deletions
+3 -2
View File
@@ -12,8 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
use std::sync::Arc;
use egui::{IconData, pos2};
use grim::AppConfig;
pub fn main() {
@@ -43,6 +41,9 @@ fn real_main() {
let icon = image::open("img/icon.png").expect("Failed to open icon path").to_rgba8();
let (icon_width, icon_height) = icon.dimensions();
use std::sync::Arc;
use egui::{IconData, pos2};
let mut viewport = egui::ViewportBuilder::default()
.with_inner_size([width, height])
.with_icon(Arc::new(IconData {