mirror of
https://git.freebsd.org/ports.git
synced 2025-06-18 19:20:36 -04:00
Agar is a cross-platform GUI toolkit. Agar provides a base framework and a collection of GUI widgets from which GUI applications can be built. Agar applications function seamlessly under X11 (with OpenGL), Windows, MacOS X and SDL 1.2. Agar can also attach an existing OpenGL or SDL context and operate as window manager for the application. Agar is compact, efficient, and fully thread-safe. Agar's functionality can be extended using simple C/C++ class registration interfaces. Separate libraries which also extend Agar's capabilities include FreeSG (http://FreeSG.org) and Edacious (http://edacious.org). WWW: http://libagar.org/ PR: 208383 Submitted by: Julien Nadeau <vedge@hypertriton.com> Reported by: amdmi3, yuri
20 lines
603 B
C
20 lines
603 B
C
Index: math/m_math.c
|
|
===================================================================
|
|
--- math/m_math.c.orig 2015-08-24 07:59:46 UTC
|
|
+++ math/m_math.c
|
|
@@ -61,7 +61,14 @@ static size_t
|
|
PrintTime(AG_FmtString *fs, char *dst, size_t dstSize)
|
|
{
|
|
M_Time *t = AG_FMTSTRING_ARG(fs);
|
|
- return AG_UnitFormat((double)(*t), agTimeUnits, dst, dstSize);
|
|
+#ifdef ENABLE_GUI
|
|
+ if (agGUI) {
|
|
+ return AG_UnitFormat((double)(*t), agTimeUnits, dst, dstSize);
|
|
+ } else
|
|
+#endif
|
|
+ {
|
|
+ return Snprintf(dst, dstSize, "%f", (double)(*t));
|
|
+ }
|
|
}
|
|
static size_t
|
|
PrintComplex(AG_FmtString *fs, char *dst, size_t dstSize)
|