Subversion Repositories Kolibri OS

Rev

Rev 298 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 298 Rev 300
Line 36... Line 36...
36
#include "doomdata.h"
36
#include "doomdata.h"
Line 37... Line 37...
37
 
37
 
Line 38... Line 38...
38
#include "m_bbox.h"
38
#include "m_bbox.h"
39
 
-
 
-
 
39
 
Line 40... Line 40...
40
#include "v_video.h"
40
#include "v_video.h"
41
 
41
#include "kolibri.h"
Line 42... Line 42...
42
 
42
 
Line 223... Line 223...
223
	||x+SHORT(patch->width) >SCREENWIDTH
223
	||x+SHORT(patch->width) >SCREENWIDTH
224
	|| y<0
224
	|| y<0
225
	|| y+SHORT(patch->height)>SCREENHEIGHT 
225
	|| y+SHORT(patch->height)>SCREENHEIGHT 
226
	|| (unsigned)scrn>4)
226
	|| (unsigned)scrn>4)
227
    {
227
    {
228
      fprintf( stderr, "Patch at %d,%d exceeds LFB\n", x,y );
228
      printf("Patch at %d,%d exceeds LFB\n", x,y );
229
      // No I_Error abort - what is up with TNT.WAD?
229
      // No I_Error abort - what is up with TNT.WAD?
230
      fprintf( stderr, "V_DrawPatch: bad patch (ignored)\n");
230
      printf("V_DrawPatch: bad patch (ignored)\n");
231
      return;
231
      return;
232
    }
232
    }
233
#endif 
233
#endif 
Line 234... Line 234...
234
 
234
 
Line 290... Line 290...
290
	||x+SHORT(patch->width) >SCREENWIDTH
290
	||x+SHORT(patch->width) >SCREENWIDTH
291
	|| y<0
291
	|| y<0
292
	|| y+SHORT(patch->height)>SCREENHEIGHT 
292
	|| y+SHORT(patch->height)>SCREENHEIGHT 
293
	|| (unsigned)scrn>4)
293
	|| (unsigned)scrn>4)
294
    {
294
    {
295
      fprintf( stderr, "Patch origin %d,%d exceeds LFB\n", x,y );
295
      printf("Patch origin %d,%d exceeds LFB\n", x,y );
296
      I_Error ("Bad V_DrawPatch in V_DrawPatchFlipped");
296
      I_Error ("Bad V_DrawPatch in V_DrawPatchFlipped");
297
    }
297
    }
298
#endif 
298
#endif 
Line 299... Line 299...
299
 
299
 
Line 481... Line 481...
481
// 
481
// 
482
void V_Init (void) 
482
void V_Init (void) 
483
{ 
483
{ 
484
    int		i;
484
    int		i;
485
    byte*	base;
485
    byte*	base;
486
		
486
	size_t  size;	
487
    // stick these in low dos memory on PCs
487
    // stick these in low dos memory on PCs
488
 
-
 
489
    base = _aligned_malloc(SCREENWIDTH*SCREENHEIGHT*4, 128);I_AllocLow (SCREENWIDTH*SCREENHEIGHT*4);
488
    size = SCREENWIDTH*SCREENHEIGHT*4;
-
 
489
    base = (byte*)UserAlloc(size);
Line 490... Line 490...
490
 
490
 
491
    for (i=0 ; i<4 ; i++)
491
    for (i=0 ; i<4 ; i++)
492
	screens[i] = base + i*SCREENWIDTH*SCREENHEIGHT;
492
	screens[i] = base + i*SCREENWIDTH*SCREENHEIGHT;