this repo has no description
13
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: mark u16 to i16 cast as explicit in src/vxfw/App.zig

authored by

Marlow D. Alfonso Díaz and committed by
Tim Culverhouse
8a9c2d5e 622d245b

+6 -6
+6 -6
src/vxfw/App.zig
··· 463 463 ctx.phase = .capturing; 464 464 for (hits.items) |item| { 465 465 var m_local = mouse; 466 - m_local.col = item.local.col; 467 - m_local.row = item.local.row; 466 + m_local.col = @intCast(item.local.col); 467 + m_local.row = @intCast(item.local.row); 468 468 try item.widget.captureEvent(ctx, .{ .mouse = m_local }); 469 469 try app.handleCommand(&ctx.cmds); 470 470 ··· 475 475 ctx.phase = .at_target; 476 476 { 477 477 var m_local = mouse; 478 - m_local.col = target.local.col; 479 - m_local.row = target.local.row; 478 + m_local.col = @intCast(target.local.col); 479 + m_local.row = @intCast(target.local.row); 480 480 try target.widget.handleEvent(ctx, .{ .mouse = m_local }); 481 481 try app.handleCommand(&ctx.cmds); 482 482 ··· 487 487 ctx.phase = .bubbling; 488 488 while (hits.pop()) |item| { 489 489 var m_local = mouse; 490 - m_local.col = item.local.col; 491 - m_local.row = item.local.row; 490 + m_local.col = @intCast(item.local.col); 491 + m_local.row = @intCast(item.local.row); 492 492 try item.widget.handleEvent(ctx, .{ .mouse = m_local }); 493 493 try app.handleCommand(&ctx.cmds); 494 494