mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-21 21:46:22 +00:00
examples: controller-graph: Fix build with MSVC
To use macros in math.h, one needs to define _USE_MATH_DEFINES before including the math.h file. Use glib's math define instead. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/862>
This commit is contained in:
parent
110edbc8bd
commit
00e1a36c4f
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ on_graph_draw (GtkWidget * widget, cairo_t * cr, gpointer user_data)
|
|||
ts = G_GUINT64_CONSTANT (0);
|
||||
for (i = 0; i < G_N_ELEMENTS (yval); i++) {
|
||||
cairo_set_source_rgb (cr, 0.0, 0.0, 0.0);
|
||||
cairo_arc (cr, x + ts, y + yval[i] * h, 3.0, 0.0, 2 * M_PI);
|
||||
cairo_arc (cr, x + ts, y + yval[i] * h, 3.0, 0.0, 2 * G_PI);
|
||||
cairo_stroke_preserve (cr);
|
||||
cairo_set_source_rgb (cr, 1.0, 1.0, 1.0);
|
||||
cairo_fill (cr);
|
||||
|
|
Loading…
Reference in a new issue