From 003506ba6214dc23f736f8ba32fc4ba220203c48 Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Wed, 25 Mar 2026 12:39:20 +0000 Subject: [PATCH] CmdLQ.c: fix MAGIC_WRAPPER code section(s) for WASM build --- commands/CmdLQ.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/commands/CmdLQ.c b/commands/CmdLQ.c index 6bf3ed1f..8f4c9727 100644 --- a/commands/CmdLQ.c +++ b/commands/CmdLQ.c @@ -2488,7 +2488,7 @@ CmdDoProperty( for (i = 0; i < proprec->prop_len; i++) TxPrintf("%s ", DBWPrintValue( proprec->prop_value.prop_integer[i], w, - ((i % 2) == 0) ? TRUE : FALSE); + ((i % 2) == 0) ? TRUE : FALSE)); TxPrintf("\n"); break; @@ -2856,18 +2856,18 @@ int printPlanePropFunc( Tile *tile, TileType dinfo, - ClientData cdata /* (unused) */ + ClientData cdata) /* (unused) */ { Rect r; MagWindow *w; - TiToRect(tile, &r) + TiToRect(tile, &r); windCheckOnlyWindow(&w, DBWclientID); - TxPrintf("%s ", DBWPrintValue(r.r_xbot, w, TRUE); - TxPrintf("%s ", DBWPrintValue(r.r_ybot, w, FALSE); - TxPrintf("%s ", DBWPrintValue(r.r_xtop, w, TRUE); - TxPrintf("%s ", DBWPrintValue(r.r_ytop, w, FALSE); + TxPrintf("%s ", DBWPrintValue(r.r_xbot, w, TRUE)); + TxPrintf("%s ", DBWPrintValue(r.r_ybot, w, FALSE)); + TxPrintf("%s ", DBWPrintValue(r.r_xtop, w, TRUE)); + TxPrintf("%s ", DBWPrintValue(r.r_ytop, w, FALSE)); return 0; } @@ -2931,19 +2931,19 @@ printPropertiesFunc( switch (proprec->prop_type) { case PROPERTY_TYPE_STRING: - TxPrintf("%s = %s\n", name, (const char *)proprec->prop_string); + TxPrintf("%s = %s\n", name, (const char *)proprec->prop_value.prop_string); break; case PROPERTY_TYPE_INTEGER: TxPrintf("%s = ", name); for (i = 0; i < proprec->prop_len; i++) - TxPrintf("%d ", proprec->prop_integer[i]); + TxPrintf("%d ", proprec->prop_value.prop_integer[i]); TxPrintf("\n"); break; case PROPERTY_TYPE_DIMENSION: TxPrintf("%s = ", name); for (i = 0; i < proprec->prop_len; i++) TxPrintf("%s ", DBWPrintValue(proprec->prop_value.prop_integer[i], - w, ((i % 2) == 0) ? TRUE : FALSE); + w, ((i % 2) == 0) ? TRUE : FALSE)); TxPrintf("\n"); break; case PROPERTY_TYPE_PLANE: @@ -2956,7 +2956,7 @@ printPropertiesFunc( case PROPERTY_TYPE_DOUBLE: TxPrintf("%s = ", name); for (i = 0; i < proprec->prop_len; i++) - TxPrintf("%"DLONG_PREFIX"d ", proprec->prop_double[i]); + TxPrintf("%"DLONG_PREFIX"d ", proprec->prop_value.prop_double[i]); TxPrintf("\n"); break; }