2021-02-16 20:38:40 +01:00
|
|
|
#include <stdlib.h>
|
2021-03-31 20:43:18 +02:00
|
|
|
#include <sys/stat.h>
|
|
|
|
#include "../../kolibri-libc/source/include/ksys.h"
|
|
|
|
|
2021-02-16 20:38:40 +01:00
|
|
|
void kolibri_set_win_center()
|
|
|
|
{
|
2021-03-31 20:43:18 +02:00
|
|
|
ksys_proc_table_t *info = (ksys_proc_table_t*)malloc(sizeof(ksys_proc_table_t));
|
|
|
|
_ksys_process_info(info, -1);
|
|
|
|
|
|
|
|
ksys_pos_t screen_size= _ksys_screen_size();
|
|
|
|
int new_x = screen_size.x/2-info->winx_size/2;
|
|
|
|
int new_y = screen_size.y/2-info->winy_size/2;
|
|
|
|
_ksys_change_window(new_x, new_y, -1, -1);
|
2021-02-16 20:38:40 +01:00
|
|
|
free(info);
|
|
|
|
}
|
2021-03-31 20:43:18 +02:00
|
|
|
|
|
|
|
int mkdir(const char * path, unsigned)
|
|
|
|
{
|
|
|
|
return _ksys_mkdir(path);
|
|
|
|
}
|
|
|
|
|