Skip to content

Commit

Permalink
mac-stats: fix compile error with STDFLOAT_DOUBLE
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
rdb committed Feb 12, 2024
1 parent 09fc5b7 commit d9052ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pandatool/src/mac-stats/macStatsMonitor.mm
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,9 @@
}

LRGBColor rgb = PStatMonitor::get_collector_color(collector_index);
rgb[0] = encode_sRGB_float(rgb[0]);
rgb[1] = encode_sRGB_float(rgb[1]);
rgb[2] = encode_sRGB_float(rgb[2]);
rgb[0] = encode_sRGB_float((float)rgb[0]);
rgb[1] = encode_sRGB_float((float)rgb[1]);
rgb[2] = encode_sRGB_float((float)rgb[2]);

PN_stdfloat bright = rgb.dot(LRGBColor(0.2126, 0.7152, 0.0722));
CGColorRef color = CGColorCreateGenericRGB(rgb[0], rgb[1], rgb[2], 1.0);
Expand Down

0 comments on commit d9052ba

Please sign in to comment.