Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4973 | right-hear | 1 | #include |
2 | |||
3 | void __menuet__dga_get_caps(int * xres,int * yres,int * bpp,int * bpscan) |
||
4 | { |
||
5 | int p; |
||
6 | __asm__ __volatile__("int $0x40":"=a"(p):"0"(61),"b"(1)); |
||
7 | if(xres) *xres=(p>>16)&0xFFFF; |
||
8 | if(yres) *yres=p & 0xFFFF; |
||
9 | if(bpp) |
||
10 | { |
||
11 | __asm__ __volatile__("int $0x40":"=a"(p):"0"(61),"b"(2)); |
||
12 | *bpp=p; |
||
13 | } |
||
14 | if(bpscan) |
||
15 | { |
||
16 | __asm__ __volatile__("int $0x40":"=a"(p):"0"(61),"b"(3)); |
||
17 | *bpscan=p; |
||
18 | } |
||
19 | } |