Warning clean up
Removing some old unused routines Addind some newlines after some files. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1077
This commit is contained in:
parent
d5231d4351
commit
b222a9576a
13 changed files with 52 additions and 81 deletions
|
@ -274,7 +274,7 @@ static void MIXER_WaveEvent(void) {
|
|||
LOG_MSG("Can't open waveout dir %s",mixer.wave.dir);
|
||||
return;
|
||||
}
|
||||
while (dir_ent=readdir(dir)) {
|
||||
while ((dir_ent=readdir(dir))) {
|
||||
char tempname[CROSS_LEN];
|
||||
strcpy(tempname,dir_ent->d_name);
|
||||
char * test=strstr(tempname,".wav");
|
||||
|
|
|
@ -115,7 +115,7 @@ static void write_latch(Bit32u port,Bit8u val) {
|
|||
if (p->write_latch == 0) p->cntr = 0x10000;
|
||||
else p->cntr = p->write_latch;
|
||||
p->start=PIC_MicroCount();
|
||||
p->micro=1000000/((float)PIT_TICK_RATE/(float)p->cntr);
|
||||
p->micro=(Bits)(1000000/((float)PIT_TICK_RATE/(float)p->cntr));
|
||||
switch (counter) {
|
||||
case 0x00: /* Timer hooked to IRQ 0 */
|
||||
PIC_RemoveEvents(PIT0_Event);
|
||||
|
@ -287,7 +287,7 @@ void TIMER_Init(Section* sect) {
|
|||
pit[0].write_latch=0;
|
||||
pit[0].mode=3;
|
||||
|
||||
pit[0].micro=1000000/((float)PIT_TICK_RATE/(float)pit[0].cntr);
|
||||
pit[0].micro=(Bits)(1000000/((float)PIT_TICK_RATE/(float)pit[0].cntr));
|
||||
pit[2].micro=100;
|
||||
PIC_AddEvent(PIT0_Event,pit[0].micro);
|
||||
}
|
||||
|
|
|
@ -22,9 +22,6 @@
|
|||
#include "vga.h"
|
||||
|
||||
static Bit8u flip=0;
|
||||
static Bit32u keep_vretrace;
|
||||
static bool keeping=false;
|
||||
static Bit8u p3c2data=0;
|
||||
|
||||
void write_p3d4(Bit32u port,Bit8u val);
|
||||
Bit8u read_p3d4(Bit32u port);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue