Updated Super 2xSaI interpolation
This commit is contained in:
@@ -19,12 +19,12 @@
|
||||
|
||||
EXTSYM vesa2selec,vidbuffer,GUIOn,FPUCopy,resolutn,En2xSaI,antienab,scanlines
|
||||
EXTSYM hirestiledat,res512switch,curblank,spritetablea
|
||||
EXTSYM lineleft,_2xSaILineW,_2xSaISuperEagleLineW
|
||||
EXTSYM lineleft,_2xSaILineW,_2xSaISuperEagleLineW, _2xSaISuper2xSaILineW
|
||||
EXTSYM newengen,cfield,HalfTrans
|
||||
EXTSYM GUIOn2
|
||||
EXTSYM SpecialLine
|
||||
EXTSYM vidbufferofsb
|
||||
EXTSYM Super2xSaI
|
||||
;EXTSYM Super2xSaI
|
||||
EXTSYM HalfTransB,HalfTransC
|
||||
|
||||
|
||||
@@ -866,7 +866,7 @@ Process2xSaIwin:
|
||||
call _2xSaISuperEagleLineW
|
||||
jmp .normal
|
||||
.super2xSaI
|
||||
call Super2xSaI
|
||||
call _2xSaISuper2xSaILineW
|
||||
.normal
|
||||
add esp,24
|
||||
pop ebx
|
||||
|
||||
@@ -131,24 +131,17 @@ _int64 start, end, freq, update_ticks_pc, start2, end2, update_ticks_pc2;
|
||||
extern "C"
|
||||
{
|
||||
void drawscreenwin(void);
|
||||
void Init_2xSaI(UINT32 BitFormat);
|
||||
//void Init_2xSaI(UINT32 BitFormat);
|
||||
DWORD LastUsedPos=0;
|
||||
DWORD CurMode=-1;
|
||||
}
|
||||
|
||||
void DDrawError(){
|
||||
char message1[256];
|
||||
|
||||
sprintf(message1,"Error drawing to the screen\nMake sure the device is not being used by another process \0");
|
||||
MessageBox (NULL, message1, "DirectDraw Error" , MB_ICONERROR );
|
||||
}
|
||||
|
||||
void DrawScreen()
|
||||
{
|
||||
if(DD_CFB==NULL) return;
|
||||
if(DD_Primary->Blt(&rcWindow,DD_CFB,NULL,DDBLT_WAIT,NULL)!=DD_OK)
|
||||
{
|
||||
DDrawError();
|
||||
// Error!!!
|
||||
}
|
||||
}
|
||||
|
||||
@@ -518,7 +511,6 @@ InitSound()
|
||||
break;
|
||||
default:
|
||||
wfx.nSamplesPerSec = 11025;
|
||||
SoundBufferSize=1024*2;
|
||||
}
|
||||
|
||||
if(StereoSound==1)
|
||||
@@ -842,7 +834,7 @@ void DInputError(){
|
||||
char message1[256];
|
||||
|
||||
sprintf(message1,"Error initializing DirectInput\nYou may need to install DirectX 7.0a or higher located at www.microsoft.com/directx \0");
|
||||
MessageBox (NULL, message1, "DirectInput Error" , MB_ICONERROR );
|
||||
MessageBox (NULL, message1, "Init Error" , MB_ICONERROR );
|
||||
}
|
||||
|
||||
bool InitInput()
|
||||
@@ -853,7 +845,7 @@ bool InitInput()
|
||||
if(FAILED(hr=DirectInputCreate(hInst,DIRECTINPUT_VERSION,&DInput,NULL)))
|
||||
{
|
||||
sprintf(message1,"Error initializing DirectInput\nYou may need to install DirectX 7.0a or higher located at www.microsoft.com/directx \0");
|
||||
MessageBox (NULL, message1, "DirectInput Error" , MB_ICONERROR );
|
||||
MessageBox (NULL, message1, "Init Error" , MB_ICONERROR );
|
||||
|
||||
switch(hr)
|
||||
{
|
||||
@@ -1082,7 +1074,7 @@ startgame()
|
||||
if(BitDepth==16&& GBitMask!=0x07E0)
|
||||
{
|
||||
converta=1;
|
||||
Init_2xSaI(555);
|
||||
//Init_2xSaI(555);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2309,7 +2301,7 @@ void SetMouseY(int Y)
|
||||
|
||||
void ZsnesPage()
|
||||
{
|
||||
ShellExecute(NULL, NULL, "http://www.zsnes.com/", NULL, NULL, 0);
|
||||
ShellExecute(NULL, NULL, "http://www.zsnes.com", NULL, NULL, 0);
|
||||
}
|
||||
|
||||
|
||||
@@ -2317,3 +2309,4 @@ void ZsnesPage()
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user