CMM APPS: use img_file_load (at least mblocks -1 sector)

git-svn-id: svn://kolibrios.org@8381 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
2020-12-13 00:32:34 +00:00
parent 99103794f2
commit 82dc2376da
11 changed files with 66 additions and 64 deletions

View File

@@ -47,7 +47,7 @@ void DrawBufer::Fill(dword start_pointer, i_fill_color)
dword i;
dword max_i = bufw * bufh * 4 + buf_data + 8;
fill_color = i_fill_color;
MEMSETD(buf_data+start_pointer+8, max_i-buf_data-start_pointer-8/4, fill_color);
@MEMSETD(buf_data+start_pointer+8, max_i-buf_data-start_pointer-8/4, fill_color);
}
void DrawBufer::DrawBar(dword x, y, w, h, color)
@@ -158,9 +158,9 @@ void DrawBufer::Zoom2x(int zoom)
*/
void DrawBufer::Show()
void DrawBufer::Show(dword _y_offset)
{
PutPaletteImage(buf_data+8, bufw, bufh, bufx, bufy, 32, 0);
PutPaletteImage(_y_offset * bufw * 4 + buf_data+8, bufw, bufh, bufx, bufy, 32, 0);
}
void DrawBufer::IncreaseBufSize()