Import backup from 2003-09-08

This commit is contained in:
Josh Holtrop 2003-09-08 22:00:00 -04:00
parent 02d7fc9a69
commit 3f4c7ff32f
2 changed files with 28 additions and 1 deletions

View File

@ -2,6 +2,9 @@
//08/13/03 Josh Holtrop
//Holtrop's Operating System
#define VXR video_mode.XResolution
#define VYR video_mode.YResolution
#include "k_defines.h"
#include "lib/string.h"
@ -80,6 +83,30 @@ void isr(dword num)
}
}
}
switch(timer)
{
case 150:
video_rectf(VXR*3/11, 0, VXR*4/11, VYR-1, 0x00000088);
break;
case 200:
video_rectf(VXR*7/11, 0, VXR*8/11, VYR-1, 0x00000088);
break;
case 250:
video_rectf(VXR/11, 0, VXR*2/11, VYR*2/5, 0x00000088);
break;
case 300:
video_rectf(VXR/11, VYR*3/5, VXR*2/11, VYR-1, 0x00000088);
break;
case 350:
video_rectf(VXR*5/11, VYR/5, VXR*6/11, VYR*4/5, 0x00000088);
break;
case 400:
video_rectf(VXR*9/11, VYR/5, VXR-1, VYR*2/5, 0x00000088);
break;
case 450:
video_rectf(VXR*8/11, VYR*3/5, VXR*10/11, VYR*4/5, 0x00000088);
break;
}
eoi();
}
//if (num == 0x21)

View File

@ -28,7 +28,7 @@ void video_init(ModeInfoBlock *mib)
{
if (a < (tot / 4))
video_psetp(a, 0x00FF0000);
else if (a < (tot / 2))
else if (a < (tot / 2))
video_psetp(a, 0x0000FF00);
else if (a < ((tot * 3) / 4))
video_psetp(a, 0x000000FF);