From da623451692b60d4f21a5957b50a2dd3f8468d90 Mon Sep 17 00:00:00 2001 From: Daveo Date: Tue, 22 May 2001 18:00:51 +0000 Subject: [PATCH] --- source/gfx/prim.cpp | 12 ++++++++++++ source/gfx/prim.h | 1 + 2 files changed, 13 insertions(+) diff --git a/source/gfx/prim.cpp b/source/gfx/prim.cpp index 713241dc2..3900378b9 100644 --- a/source/gfx/prim.cpp +++ b/source/gfx/prim.cpp @@ -67,6 +67,18 @@ void PrimDisplay() ResetOTagR(BaseOtPtr,MAX_OT_ALL); } +/*****************************************************************************/ +void FlushPrimPool() +{ + printf("%x %x\n",(int)CurrPrim,(int)PrimBuffer[PrimFlipFlag]); + BaseOtPtr=(sOT*)OtList[PrimFlipFlag]; + GUIOtPtr=BaseOtPtr; + OtPtr=GUIOtPtr+MAX_OT_GUI; + CurrPrim=(u8*)PrimBuffer[PrimFlipFlag]; + EndPrim=CurrPrim+(PRIMPOOL_SIZE); + ResetOTagR(BaseOtPtr,MAX_OT_ALL); +} + /*** Clipping ****************************************************************/ void PrimClip(RECT *R, u32 Depth) { diff --git a/source/gfx/prim.h b/source/gfx/prim.h index 98d224ea0..9458812c9 100644 --- a/source/gfx/prim.h +++ b/source/gfx/prim.h @@ -322,6 +322,7 @@ void PrimClip(RECT *r, u32 Depth); void PrimFullScreen(int Depth); inline u8 *GetPrimPtr() {return(CurrPrim);} inline void SetPrimPtr(u8 *Ptr) {CurrPrim=Ptr;} +void FlushPrimPool(); LINE_F2 *DrawLine(int _x0,int _y0,int _x1,int _y1,int _r,int _g,int _b,int _ot); LINE_G2 *DrawGLine(int _x0,int _y0,int _x1,int _y1,int _r1,int _g1,int _b1,int _r2,int _g2,int _b2,int _ot);