summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfalkTX <falktx@gmail.com>2014-04-26 03:45:12 +0100
committerfalkTX <falktx@gmail.com>2014-04-26 03:45:12 +0100
commit25c42b1dfc35e9d285d355d3d13b38d97df8b049 (patch)
tree207881d97b851e0ca8074ba0451a800d2b0768e5
parent1c28e97556dd66a2937dde059f8642d9fbc2c004 (diff)
Fix windows build
-rw-r--r--distrho/DistrhoUtils.hpp4
-rw-r--r--distrho/src/DistrhoPluginVST.cpp2
-rw-r--r--examples/text.cpp6
3 files changed, 6 insertions, 6 deletions
diff --git a/distrho/DistrhoUtils.hpp b/distrho/DistrhoUtils.hpp
index a7fc954c..82fa8dfb 100644
--- a/distrho/DistrhoUtils.hpp
+++ b/distrho/DistrhoUtils.hpp
@@ -144,7 +144,7 @@ void d_sleep(const uint secs)
DISTRHO_SAFE_ASSERT_RETURN(secs > 0,);
try {
-#ifdef DISTRHO_OS_WIN
+#ifdef DISTRHO_OS_WINDOWS
::Sleep(secs * 1000);
#else
::sleep(secs);
@@ -158,7 +158,7 @@ void d_msleep(const uint msecs)
DISTRHO_SAFE_ASSERT_RETURN(msecs > 0,);
try {
-#ifdef DISTRHO_OS_WIN
+#ifdef DISTRHO_OS_WINDOWS
::Sleep(msecs);
#else
::usleep(msecs * 1000);
diff --git a/distrho/src/DistrhoPluginVST.cpp b/distrho/src/DistrhoPluginVST.cpp
index ec5d4219..2920736c 100644
--- a/distrho/src/DistrhoPluginVST.cpp
+++ b/distrho/src/DistrhoPluginVST.cpp
@@ -753,7 +753,7 @@ private:
fPlugin.setState(newKey, newValue);
// check if we want to save this key
- if (! fPlugin.wantsStateKey(newKey))
+ if (! fPlugin.wantStateKey(newKey))
return;
// check if key already exists
diff --git a/examples/text.cpp b/examples/text.cpp
index 31685ee4..d91e1e84 100644
--- a/examples/text.cpp
+++ b/examples/text.cpp
@@ -84,7 +84,7 @@ public:
wchar_t* text = L"A Quick Brown Fox Jumps Over The Lazy Dog 0123456789";
#if 1
- atlas = texture_atlas_new(600, 300, 2);
+ atlas = texture_atlas_new(600, 300, 1);
DISTRHO_SAFE_ASSERT_RETURN(atlas != nullptr,);
//fontmgr = font_manager_new(600, 200, 2);
@@ -175,8 +175,8 @@ private:
//mat4_set_identity(&view);
glViewport(0, 0, width, height);
- mat4_set_orthographic(&projection, 0, width, 0, height, width, height);
- //mat4_set_orthographic(&projection, 0, width, 0, height, -1, 1);
+ //mat4_set_orthographic(&projection, 0, width, 0, height, width, height);
+ mat4_set_orthographic(&projection, 0, width, 0, height, -1, 1);
}
texture_atlas_t* atlas;