Skip to content

Commit 7f04159

Browse files
committed
More tweaks
1 parent f3a9d60 commit 7f04159

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

examples/graphics/source/examples/VariableFonts.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,11 @@ class VariableFontsExample : public yup::Component
168168
slider->setDefaultValue (defaultValue);
169169
slider->setRange ({ minValue, maxValue });
170170
slider->setValue (defaultValue);
171-
slider->onValueChanged = [this, index, &valueToSet] (float value)
171+
slider->onValueChanged = [this, index, &valueToSet] (double value)
172172
{
173173
updateLabel (index);
174174

175-
valueToSet = value;
175+
valueToSet = static_cast<float> (value);
176176

177177
resized();
178178
repaint (textBounds);

thirdparty/flac_library/flac_include_pre.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,6 @@
8686
#undef PACKAGE_VERSION
8787
#define PACKAGE_VERSION "1.5.0"
8888

89-
#define FLAC__NO_DLL 1
90-
#define FLAC__HAS_OGG 0
91-
9289
#if !defined _MSC_VER
9390
#define HAVE_LROUND 1
9491
#endif

thirdparty/flac_library/flac_library.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,7 @@
4242

4343
#pragma once
4444

45+
#define FLAC__NO_DLL 1
46+
#define FLAC__HAS_OGG 0
47+
4548
#include <FLAC/all.h>

0 commit comments

Comments
 (0)