Skip to content

Commit 9921e88

Browse files
committed
Update textures_gif_player.lpr
1 parent e6bd593 commit 9921e88

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/textures/textures_gif_player/textures_gif_player.lpr

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,16 @@
7373

7474
FrameCounter := 0;
7575
// Control frames delay
76-
if IsKeyPressed(KEY_RIGHT) then Inc(FrameDelay)
77-
else if IsKeyPressed(KEY_LEFT) then Dec(FrameDelay);
76+
7877

7978
if FrameDelay > MAX_FRAME_DELAY then FrameDelay := MAX_FRAME_DELAY
8079
else if FrameDelay < MIN_FRAME_DELAY then FrameDelay := MIN_FRAME_DELAY;
8180
//----------------------------------------------------------------------------------
8281
end;
8382

83+
if IsKeyPressed(KEY_RIGHT) then Inc(FrameDelay)
84+
else if IsKeyPressed(KEY_LEFT) then Dec(FrameDelay);
85+
8486
// Draw
8587
//----------------------------------------------------------------------------------
8688
BeginDrawing();

0 commit comments

Comments
 (0)