From 4342f249f488ff5c9ce0766ea58dcdd685cd953a Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Sat, 15 Dec 2012 00:40:56 +0000 Subject: [PATCH] c-- last update git-svn-id: svn://kolibrios.org@3110 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/lib/figures.h | 4 ++-- programs/cmm/tmpdisk/compile_en.bat | 2 +- programs/cmm/tmpdisk/compile_ru.bat | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/programs/cmm/lib/figures.h b/programs/cmm/lib/figures.h index 6c6d9075d5..e27a0f6462 100644 --- a/programs/cmm/lib/figures.h +++ b/programs/cmm/lib/figures.h @@ -16,10 +16,10 @@ void DrawRectangle3D(dword x,y,width,height,color1,color2) DrawBar(x,y+height,width,1,color2); } -void DrawCaptButton(dword x,y,width,height,id,color_b, color_t,text,text_len) +void DrawCaptButton(dword x,y,width,height,id,color_b, color_t,text) { DefineButton(x,y,width,height,id,color_b); - WriteText(-text_len*6+width/2+x+1,height/2-3+y,0x80,color_t,text); + WriteText(-strlen(text)*6+width/2+x+1,height/2-3+y,0x80,color_t,text); } void DrawCircle(int x, y, r) diff --git a/programs/cmm/tmpdisk/compile_en.bat b/programs/cmm/tmpdisk/compile_en.bat index 9732ee0bcb..cf7f9e7a9d 100644 --- a/programs/cmm/tmpdisk/compile_en.bat +++ b/programs/cmm/tmpdisk/compile_en.bat @@ -1,5 +1,5 @@ del lang.h -echo #define LANG_ENG 1 >lang.h +echo #define LANG_ENG 1 >lang.h-- ..\C--\C-- tmpdisk.c del tmpdisk diff --git a/programs/cmm/tmpdisk/compile_ru.bat b/programs/cmm/tmpdisk/compile_ru.bat index 607b6a52f5..fe7df86abf 100644 --- a/programs/cmm/tmpdisk/compile_ru.bat +++ b/programs/cmm/tmpdisk/compile_ru.bat @@ -1,5 +1,5 @@ del lang.h -echo #define LANG_RUS 1 >lang.h +echo #define LANG_RUS 1 >lang.h-- ..\C--\C-- tmpdisk.c /lst del tmpdisk