Closed pedro-w closed 2 years ago
I'm getting a compiler error on combat.cpp:328:
error C2664: 'void KDraw::menubox(Raster *,int,int,int,int,eBoxFill)': cannot convert argument 6 from 'uint8_t' to 'eBoxFill'
note: Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or parenthesized function-style cast)
Draw.menubox(double_buffer, center_aligned_text - 8, top_aligned_text,
fighter[current_fighter_index].name.length(), 1, BLUE);
KDraw::menubox() is defined with the eBoxFill
type for the last param:
void menubox(Raster* where, int x, int y, int width, int height, eBoxFill color);
and BLUE
isn't listed as a valid type,
Poor quality control, sorry (I made a mistake while trying to clang-format the changes without touching those places that have manual format)
Should compile now. (QC is OK for KQ, you might say?)
Fixes #117