diff options
| author | Ray <[email protected]> | 2017-05-16 15:23:01 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2017-05-16 15:23:01 +0200 |
| commit | a5bfd7db228b90b5ddc183a03e1f0630d7321091 (patch) | |
| tree | bf3bdc6d20e55e7a54c72e426245156b75f30c15 /examples/text/text_ttf_loading.c | |
| parent | e563ebe240c16c142157c3d21df50c72fe27ff14 (diff) | |
| download | raylib-a5bfd7db228b90b5ddc183a03e1f0630d7321091.tar.gz raylib-a5bfd7db228b90b5ddc183a03e1f0630d7321091.zip | |
Some reviews for RPI
Diffstat (limited to 'examples/text/text_ttf_loading.c')
| -rw-r--r-- | examples/text/text_ttf_loading.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/examples/text/text_ttf_loading.c b/examples/text/text_ttf_loading.c index 02b7f95f..c9c2fb27 100644 --- a/examples/text/text_ttf_loading.c +++ b/examples/text/text_ttf_loading.c @@ -38,8 +38,11 @@ int main() SetTextureFilter(font.texture, FILTER_POINT); int currentFontFilter = 0; // FILTER_POINT + // NOTE: Drag and drop support only available for desktop platforms: Windows, Linux, OSX +#if defined(PLATFORM_DESKTOP) int count = 0; char **droppedFiles; +#endif SetTargetFPS(60); //-------------------------------------------------------------------------------------- @@ -74,6 +77,7 @@ int main() if (IsKeyDown(KEY_LEFT)) fontPosition.x -= 10; else if (IsKeyDown(KEY_RIGHT)) fontPosition.x += 10; +#if defined(PLATFORM_DESKTOP) // Load a dropped TTF file dynamically (at current fontSize) if (IsFileDropped()) { @@ -86,6 +90,7 @@ int main() ClearDroppedFiles(); } } +#endif //---------------------------------------------------------------------------------- // Draw @@ -119,10 +124,11 @@ int main() // De-Initialization //-------------------------------------------------------------------------------------- +#if defined(PLATFORM_DESKTOP) + ClearDroppedFiles(); // Clear internal buffers +#endif UnloadSpriteFont(font); // SpriteFont unloading - ClearDroppedFiles(); // Clear internal buffers - CloseWindow(); // Close window and OpenGL context //-------------------------------------------------------------------------------------- |
