You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
319 B

#define __LIBRARY__
#include<all.h>
#include<unistd.h>
_syscall0(int,init_graphics);
_syscall1(int,repaint,struct pho *,pho);
int main(void)
{
struct pho my_rect;
init_graphics();
my_rect.color = 12;
my_rect.x = 50;
my_rect.y = 50;
my_rect.dx = 10;
my_rect.dy = 10;
repaint(&my_rect);
}