DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit 25c42b1dfc35e9d285d355d3d13b38d97df8b049
parent 1c28e97556dd66a2937dde059f8642d9fbc2c004
Author: falkTX <falktx@gmail.com>
Date:   Sat, 26 Apr 2014 03:44:47 +0100

Fix windows build

Diffstat:
Mdistrho/DistrhoUtils.hpp | 4++--
Mdistrho/src/DistrhoPluginVST.cpp | 2+-
Mexamples/text.cpp | 6+++---
3 files changed, 6 insertions(+), 6 deletions(-)

diff --git 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 @@ -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 @@ -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;