From 7097b85f506fc3b987ba8364167b6ca287931ff5 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Wed, 23 Oct 2013 22:35:00 +0000 Subject: [PATCH] CD Player: use 70.1 function to set window title git-svn-id: svn://kolibrios.org@4079 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/media/cdp/trunk/cdp.asm | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/programs/media/cdp/trunk/cdp.asm b/programs/media/cdp/trunk/cdp.asm index cfa2fb5f1b..b52446f82c 100644 --- a/programs/media/cdp/trunk/cdp.asm +++ b/programs/media/cdp/trunk/cdp.asm @@ -753,13 +753,12 @@ draw_window: mov esi,0x8099bbff ; color of grab bar RRGGBB,8->color glide mov edi,0x0099bbee ; color of frames RRGGBB mcall - ; WINDOW LABEL - mov eax,4 ; function 4 : write text to window - mov ebx,8*65536+8 ; [x start] *65536 + [y start] - mov ecx,0x1000ffff ; color of text RRGGBB - mov edx,labelt ; pointer to text beginning - mov esi,labellen-labelt ; text length + ; WINDOW TITLE mcall + mov eax,71 + mov ebx,1 + mov ecx,labelt + int 40h mov eax,13 ;bar mov ebx,8 shl 16 + 204 @@ -1295,7 +1294,7 @@ no_cda: db 'Audio CD not found' no_cda_len: labelt: - db 'CD player' + db 'CD player',0 labellen: help1: db 'HotKeys: '