mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-22 10:22:48 +01:00
- implement SwapDrawBuffers
This commit is contained in:
parent
87cfbffc82
commit
d7ba985945
@ -1,6 +1,8 @@
|
||||
#ifndef DRAW_H
|
||||
#define DRAW_H
|
||||
|
||||
extern MATRIX aspect;
|
||||
|
||||
extern int units_across_halved;
|
||||
extern int units_down_halved;
|
||||
|
||||
|
@ -13,6 +13,8 @@
|
||||
#include "GLAUNCH.H"
|
||||
#include "MAIN.H"
|
||||
#include "PAD.H"
|
||||
#include "DRAW.H"
|
||||
|
||||
|
||||
#include <string.h>
|
||||
|
||||
@ -1749,31 +1751,34 @@ void DisableDisplay(void)
|
||||
|
||||
/* WARNING: Unknown calling convention yet parameter storage is locked */
|
||||
|
||||
int DoNotSwap = 0;
|
||||
|
||||
// [D]
|
||||
void SwapDrawBuffers(void)
|
||||
{
|
||||
UNIMPLEMENTED();
|
||||
|
||||
/*
|
||||
DrawSync(0);
|
||||
|
||||
if (DoNotSwap == 0) {
|
||||
PutDispEnv(¤t->disp);
|
||||
PutDrawEnv(¤t->draw);
|
||||
}
|
||||
|
||||
DoNotSwap = 0;
|
||||
PutDrawEnv(¤t->draw);
|
||||
DrawOTag(current->ot + 0x107f);
|
||||
if ((FrameCnt & 1U) == 0) {
|
||||
current = &DB_000e0938;
|
||||
last = &MPBuff;
|
||||
DrawOTag((u_long*)current->ot + 0x107f);
|
||||
|
||||
if ((FrameCnt & 1U) == 0)
|
||||
{
|
||||
current = &MPBuff[0][1];
|
||||
last = &MPBuff[0][0];
|
||||
}
|
||||
else {
|
||||
current = &MPBuff;
|
||||
last = &DB_000e0938;
|
||||
else
|
||||
{
|
||||
current = &MPBuff[0][0];
|
||||
last = &MPBuff[0][1];
|
||||
}
|
||||
ClearOTagR(current->ot, (int)&DAT_00001080);
|
||||
ClearOTagR((u_long*)current->ot, 0x1080);
|
||||
current->primptr = current->primtab;
|
||||
return;
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
@ -1989,8 +1994,6 @@ void SetupDrawBuffers(void)
|
||||
/* end block 3 */
|
||||
// End Line: 2935
|
||||
|
||||
MATRIX aspect;
|
||||
|
||||
// [D]
|
||||
void SetupDrawBufferData(int num_players)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user