Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 332 → Rev 333

/programs/games/doom/trunk/i_system.c
26,8 → 26,6
#include <stdlib.h>
#include <stdarg.h>
#include <ctype.h>
//#include "SDL.h"
//#include "SDL_timer.h"
 
#include "doomdef.h"
#include "m_misc.h"
39,24 → 37,11
 
 
#include "i_system.h"
 
#include "kolibri.h"
 
int mb_used = 6;
int mb_used = 8;
 
 
int I_strncasecmp(char *str1, char *str2, int len)
{
char c1, c2;
 
while ( *str1 && *str2 && len-- ) {
c1 = *str1++;
c2 = *str2++;
if ( toupper(c1) != toupper(c2) )
return(1);
}
return(0);
}
 
void
I_Tactile
( int on,
91,22 → 76,18
// returns time in 1/35 second tics
//
 
__declspec(dllimport) unsigned int __stdcall GetTickCount(void);
 
int I_GetTime (void)
{
unsigned int tm;
// _asm
// {
// mov eax, 26
// mov ebx, 9
// int 0x40
// mov [tm], eax
// };
_asm
{ push ebx
mov eax, 26
mov ebx, 9
int 0x40
mov dword ptr [tm], eax
pop ebx
};
tm=GetTickCount()/10;
return (tm*TICRATE)/100;
}
 
118,7 → 99,7
void I_Init (void)
{
I_InitGraphics();
I_InitSound();
// I_InitSound();
}
 
//
148,6 → 129,7
{
}
 
/***********
byte* I_AllocLow(int length)
{
byte* mem;
156,8 → 138,8
memset (mem,0,length);
return mem;
}
************/
 
 
//
// I_Error
//
170,8 → 152,8
// Message first.
va_start (argptr,error);
printf ("Error: ");
printf (argptr);
printf ("\n");
printf (error,argptr);
printf ("\n\r");
va_end (argptr);
 
// Shutdown. Here might be other errors.