Make Fl_SVG_Graphics_Driver use the C locale when writing float values - cont'd

This commit is contained in:
ManoloFLTK 2025-01-18 17:25:07 +01:00
parent 323d525591
commit 407567b70e

View File

@ -183,7 +183,7 @@ void Fl_SVG_Graphics_Driver::rect(int x, int y, int w, int h) {
}
void Fl_SVG_Graphics_Driver::rectf(int x, int y, int w, int h) {
fprintf(out_, "<rect x=\"%.3f\" y=\"%.3f\" width=\"%d\" height=\"%d\" "
clocale_fprintf(out_, "<rect x=\"%.3f\" y=\"%.3f\" width=\"%d\" height=\"%d\" "
"fill=\"rgb(%u,%u,%u)\" />\n", x-.5, y-.5, w, h, red_, green_, blue_);
}