Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 8382 → Rev 8383

/programs/cmm/lib/fs.h
198,6 → 198,16
$int 0x40
}
 
void read_file(dword path1, buf, size)
{
EAX = 68;
EBX = 27;
ECX = path1;
$int 0x40;
ESDWORD[size] = EDX;
ESDWORD[buf] = EAX;
}
 
//===================================================//
// //
// Misc //
/programs/cmm/lib/kfont.h
21,7 → 21,7
#endif
 
#ifndef INCLUDE_IO_H
#include "../lib/io.h"
#include "../lib/fs.h"
#endif
 
#include "../lib/patterns/rgb.h"
69,14 → 69,13
 
:bool KFONT::init(dword font_path)
{
IO label_io;
dword fsize_notused;
if(font)free(font);
label_io.read(font_path);
read_file(font_path, #font_begin, #fsize_notused);
if(!EAX) {
label_io.run("/sys/@notify", "'Error: KFONT is not loaded.' -E");
RunProgram("/sys/@notify", "'Error: KFONT is not loaded.' -E");
return false;
}
font_begin = label_io.buffer_data;
changeSIZE();
smooth = true;
return true;