From 07ed9100ad14cc1cd0d13bf3b8ceefb7c1fb1188 Mon Sep 17 00:00:00 2001 From: "Evgeny Grechnikov (Diamond)" Date: Wed, 27 May 2009 17:22:57 +0000 Subject: [PATCH] bugfixes in KIV git-svn-id: svn://kolibrios.org@1087 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/media/kiv/trunk/kiv.asm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/programs/media/kiv/trunk/kiv.asm b/programs/media/kiv/trunk/kiv.asm index 6821877d0b..e448786e64 100644 --- a/programs/media/kiv/trunk/kiv.asm +++ b/programs/media/kiv/trunk/kiv.asm @@ -189,12 +189,12 @@ button: cmp eax, 'bck' jnz @f call prev_image - jmp still + jmp red @@: cmp eax, 'fwd' jnz @f call next_image - jmp still + jmp red @@: cmp eax, 1 @@ -587,7 +587,7 @@ draw_window: mcall 9, procinfo cmp dword [ebx + 66], 0 - jle .noredraw + jle .posok mov edx, ecx mov esi, ecx @@ -619,7 +619,9 @@ draw_window: mcall 9, procinfo, -1 mov [bFirstDraw], 1 - mov ebx, [procinfo + 62] + cmp dword [ebx + 66], 0 + jle .nodraw + mov ebx, [ebx + 62] inc ebx mcall 13, , <0, 35>, 0xFFFFFF mov ecx, [procinfo + 66] @@ -702,9 +704,9 @@ draw_window: call draw_cur_frame +.nodraw: mcall 12, 2 -.noredraw: ret draw_cur_frame: