Browse Source

Fix windows build

gh-pages
falkTX 11 years ago
parent
commit
25c42b1dfc
3 changed files with 6 additions and 6 deletions
  1. +2
    -2
      distrho/DistrhoUtils.hpp
  2. +1
    -1
      distrho/src/DistrhoPluginVST.cpp
  3. +3
    -3
      examples/text.cpp

+ 2
- 2
distrho/DistrhoUtils.hpp View File

@@ -144,7 +144,7 @@ void d_sleep(const uint secs)
DISTRHO_SAFE_ASSERT_RETURN(secs > 0,); DISTRHO_SAFE_ASSERT_RETURN(secs > 0,);


try { try {
#ifdef DISTRHO_OS_WIN
#ifdef DISTRHO_OS_WINDOWS
::Sleep(secs * 1000); ::Sleep(secs * 1000);
#else #else
::sleep(secs); ::sleep(secs);
@@ -158,7 +158,7 @@ void d_msleep(const uint msecs)
DISTRHO_SAFE_ASSERT_RETURN(msecs > 0,); DISTRHO_SAFE_ASSERT_RETURN(msecs > 0,);


try { try {
#ifdef DISTRHO_OS_WIN
#ifdef DISTRHO_OS_WINDOWS
::Sleep(msecs); ::Sleep(msecs);
#else #else
::usleep(msecs * 1000); ::usleep(msecs * 1000);


+ 1
- 1
distrho/src/DistrhoPluginVST.cpp View File

@@ -753,7 +753,7 @@ private:
fPlugin.setState(newKey, newValue); fPlugin.setState(newKey, newValue);


// check if we want to save this key // check if we want to save this key
if (! fPlugin.wantsStateKey(newKey))
if (! fPlugin.wantStateKey(newKey))
return; return;


// check if key already exists // check if key already exists


+ 3
- 3
examples/text.cpp View File

@@ -84,7 +84,7 @@ public:
wchar_t* text = L"A Quick Brown Fox Jumps Over The Lazy Dog 0123456789"; wchar_t* text = L"A Quick Brown Fox Jumps Over The Lazy Dog 0123456789";


#if 1 #if 1
atlas = texture_atlas_new(600, 300, 2);
atlas = texture_atlas_new(600, 300, 1);
DISTRHO_SAFE_ASSERT_RETURN(atlas != nullptr,); DISTRHO_SAFE_ASSERT_RETURN(atlas != nullptr,);


//fontmgr = font_manager_new(600, 200, 2); //fontmgr = font_manager_new(600, 200, 2);
@@ -175,8 +175,8 @@ private:
//mat4_set_identity(&view); //mat4_set_identity(&view);


glViewport(0, 0, width, height); 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; texture_atlas_t* atlas;


Loading…
Cancel
Save