/programs/develop/ktcc/trunk/libc.obj/include/clayer/libimg.h |
---|
115,7 → 115,7 |
DLLAPI Image* __stdcall img_resize_data(Image *src, uint32_t width, uint32_t height); |
DLLAPI Image* __stdcall img_scale(Image* src, uint32_t crop_x, uint32_t crop_y, uint32_t crop_width, uint32_t crop_height, Image* dst, uint32_t scale_type, uint32_t inter, uint32_t new_width, uint32_t new_height); |
void img_fill_color(Image* img, uint32_t width, uint32_t height, uint32_t color){ |
static void img_fill_color(Image* img, uint32_t width, uint32_t height, uint32_t color){ |
for (uint32_t i = 0; i < width*height; i++) { |
img->Data[i] = color; |
} |
/programs/develop/ktcc/trunk/libc.obj/include/sys/ksys.h |
---|
201,6 → 201,19 |
}; |
} ksys_signal_info_t; |
typedef struct { |
int32_t dst_x; |
int32_t dst_y; |
uint32_t dst_w; |
uint32_t dst_h; |
int32_t src_x; |
int32_t src_y; |
uint32_t src_w; |
uint32_t src_h; |
uint32_t depth; |
uint32_t pitch; |
} ksys_blitter_params_t; |
#pragma pack(pop) |
typedef rgb_t ksys_bitmap_t; |
1615,6 → 1628,19 |
#define _ksys_clear_window_title() _ksys_set_window_title(NULL) |
/*============= Function 73 - blitter =============*/ |
KOSAPI void _ksys_blitter(uint32_t flags, ksys_blitter_params_t *params) |
{ |
int res; |
asm_inline( |
"int $0x40" |
: "=a"(res) |
: "a"(73), "b"(flags), "c"(params) |
: "memory"); |
(void)res; |
} |
/*============= Function 77, subfunction 0 - create futex object =============*/ |
KOSAPI uint32_t _ksys_futex_create(int* futex_ctrl) |