From d3eaceebe43cbb6b85125f73fbef3cf2241fe452 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Mon, 15 Apr 2024 20:19:25 +0100 Subject: add stroke drawop and refactor drawop ser/deser a bit --- server/main.ha | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'server') diff --git a/server/main.ha b/server/main.ha index cf8e720..2043a1d 100644 --- a/server/main.ha +++ b/server/main.ha @@ -197,10 +197,9 @@ fn handle_packet( const conn = &state.connections[conn_idx]; match (packet) { case let op: packet_reader::packet_drawop => - const opc = op as drawing::op_circle; // fmt::printfln("#{}: drawop ({:+6},{:+6}) r{}", // conn_idx,opc.pos.0,opc.pos.1, opc.radius)!; - drawing::perform(state.pictures, opc); + drawing::perform(state.pictures, op); for (let other_idx = 0z; other_idx < len(state.connections); other_idx += 1) -- cgit v1.2.3