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