Browse Source

Updated example

pull/12/head
raysan5 10 years ago
parent
commit
5e913c31a4
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      examples/text_font_select.c

+ 3
- 3
examples/text_font_select.c View File

@ -84,7 +84,7 @@ int main()
btnNextInColor = PURPLE;
}
if (IsMouseButtonPressed(MOUSE_LEFT_BUTTON))
if (IsMouseButtonDown(MOUSE_LEFT_BUTTON))
{
framesCounter = 20; // Frames button is 'active'
btnNextOutColor = MAROON;
@ -97,8 +97,8 @@ int main()
btnNextOutColor = DARKBLUE;
btnNextInColor = SKYBLUE;
}
if (IsMouseButtonReleased(MOUSE_LEFT_BUTTON) && (framesCounter > 0)) framesCounter--;
if (framesCounter > 0) framesCounter--;
if (framesCounter == 1) // We change font on frame 1
{

Loading…
Cancel
Save