X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2Fdos%2Fgfx.c;h=c2e4f8decd2f974b92cf0ddbbcfdb3ae1a3d2221;hp=46cec310e5eb9c64c6fb915e10fdcfdca5046f7a;hb=62c84af3483abd59e3b6672559b19a9ea17ff14d;hpb=410d47f1459aa79505198d9d09462aeeaffc612a diff --git a/src/dos/gfx.c b/src/dos/gfx.c index 46cec31..c2e4f8d 100644 --- a/src/dos/gfx.c +++ b/src/dos/gfx.c @@ -154,43 +154,6 @@ void set_palette(int idx, int r, int g, int b) vbe_set_palette(idx, col, 1, pal_bits); } -#ifdef __WATCOMC__ -void wait_vsync_asm(void); -#pragma aux wait_vsync_asm = \ - "mov dx, 0x3da" \ - "l1:" \ - "in al, dx" \ - "and al, 0x8" \ - "jnz l1" \ - "l2:" \ - "in al, dx" \ - "and al, 0x8" \ - "jz l2" \ - modify[al dx]; - -void wait_vsync(void) -{ - wait_vsync_asm(); -} -#endif - -#ifdef __DJGPP__ -void wait_vsync(void) -{ - asm volatile ( - "mov $0x3da, %%dx\n\t" - "0:\n\t" - "in %%dx, %%al\n\t" - "and $8, %%al\n\t" - "jnz 0b\n\t" - "0:\n\t" - "in %%dx, %%al\n\t" - "and $8, %%al\n\t" - "jz 0b\n\t" - :::"%eax","%edx"); -} -#endif - static unsigned int make_mask(int sz, int pos) { unsigned int i, mask = 0;