Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. #include<menuet/os.h>
  2.  
  3. void __menuet__define_window(__u16 x1,__u16 y1,__u16 xsize,__u16 ysize,
  4.      __u32 body_color,__u32 grab_color,__u32 frame_color)
  5. {
  6.  __u32 a,b;
  7.  a=(x1<<16)|xsize;
  8.  b=(y1<<16)|ysize;
  9.  __asm__ __volatile__("int $0x40"::"a"(0),"b"(a),"c"(b),"d"(body_color),"S"(grab_color),
  10.                       "D"(frame_color));
  11. }
  12.  
  13. void __menuet__window_redraw(int status)
  14. {
  15.  __asm__ __volatile__("int $0x40"::"a"(12),"b"(status));
  16. }
  17.