GUI updates
This commit is contained in:
@@ -1157,6 +1157,8 @@ GUIVideoKeys:
|
|||||||
cmp byte[GUITBWVID+eax],0
|
cmp byte[GUITBWVID+eax],0
|
||||||
je near .notriplebufferwin
|
je near .notriplebufferwin
|
||||||
xor byte[TripleBufferWin],1
|
xor byte[TripleBufferWin],1
|
||||||
|
mov byte[vsyncon],0
|
||||||
|
mov byte[cfgvsync],0
|
||||||
.notriplebufferwin
|
.notriplebufferwin
|
||||||
cmp dh,'T'
|
cmp dh,'T'
|
||||||
jne .notriplebuffer
|
jne .notriplebuffer
|
||||||
@@ -1165,6 +1167,8 @@ GUIVideoKeys:
|
|||||||
cmp byte[GUITBVID+ebx],0
|
cmp byte[GUITBVID+ebx],0
|
||||||
je .notriplebuffer
|
je .notriplebuffer
|
||||||
xor byte[Triplebufen],1
|
xor byte[Triplebufen],1
|
||||||
|
mov byte[vsyncon],0
|
||||||
|
mov byte[cfgvsync],0
|
||||||
.notriplebuffer
|
.notriplebuffer
|
||||||
cmp dh,'G'
|
cmp dh,'G'
|
||||||
jne .nograyscale
|
jne .nograyscale
|
||||||
@@ -1176,6 +1180,12 @@ GUIVideoKeys:
|
|||||||
xor byte[vsyncon],1
|
xor byte[vsyncon],1
|
||||||
mov al,[vsyncon]
|
mov al,[vsyncon]
|
||||||
mov [cfgvsync],al
|
mov [cfgvsync],al
|
||||||
|
%ifdef __WIN32__
|
||||||
|
mov byte[TripleBufferWin],0
|
||||||
|
%endif
|
||||||
|
%ifdef __MSDOS__
|
||||||
|
mov byte[Triplebufen],0
|
||||||
|
%endif
|
||||||
.novsync
|
.novsync
|
||||||
%endif
|
%endif
|
||||||
ret
|
ret
|
||||||
|
|||||||
@@ -1338,6 +1338,20 @@ GUIWinClicked:
|
|||||||
%%noclick
|
%%noclick
|
||||||
%endmacro
|
%endmacro
|
||||||
|
|
||||||
|
%macro GUIClickCButtonT 4
|
||||||
|
cmp eax,%1+1
|
||||||
|
jl %%noclick
|
||||||
|
cmp edx,%2+3
|
||||||
|
jl %%noclick
|
||||||
|
cmp eax,%1+6
|
||||||
|
jg %%noclick
|
||||||
|
cmp edx,%2+8
|
||||||
|
jg %%noclick
|
||||||
|
xor %3,1
|
||||||
|
mov %4,0
|
||||||
|
%%noclick
|
||||||
|
%endmacro
|
||||||
|
|
||||||
%macro GUISlidebarPostImpl 13 ; x1,y1,x2,y2,upjump,downjump,holdpos,scsize,view,cur,listsize
|
%macro GUISlidebarPostImpl 13 ; x1,y1,x2,y2,upjump,downjump,holdpos,scsize,view,cur,listsize
|
||||||
cmp dword[%11],0
|
cmp dword[%11],0
|
||||||
je near %%nolower
|
je near %%nolower
|
||||||
@@ -2220,11 +2234,14 @@ DisplayGUIVideoClick:
|
|||||||
mov bl,[cvidmode]
|
mov bl,[cvidmode]
|
||||||
cmp byte[GUITBVID+ebx],0
|
cmp byte[GUITBVID+ebx],0
|
||||||
je .nocheckboxttb
|
je .nocheckboxttb
|
||||||
GUIClickCButton5 11,163,byte[Triplebufen],1
|
GUIClickCButtonT 11,163,byte[Triplebufen],byte[vsyncon]
|
||||||
.nocheckboxttb
|
.nocheckboxttb
|
||||||
GUIClickCButton 11,183,byte[GrayscaleMode]
|
GUIClickCButton 11,183,byte[GrayscaleMode]
|
||||||
%ifndef __LINUX__
|
%ifdef __WIN32__
|
||||||
GUIClickCButton2 115,183,byte[vsyncon],byte[cfgvsync],1
|
GUIClickCButtonT 115,183,byte[vsyncon],byte[TripleBufferWin]
|
||||||
|
%endif
|
||||||
|
%ifdef __MSDOS__
|
||||||
|
GUIClickCButtonT 115,183,byte[vsyncon],byte[Triplebufen]
|
||||||
%endif
|
%endif
|
||||||
xor ebx,ebx
|
xor ebx,ebx
|
||||||
mov bl,[cvidmode]
|
mov bl,[cvidmode]
|
||||||
@@ -2244,7 +2261,7 @@ DisplayGUIVideoClick:
|
|||||||
mov bl,[cvidmode]
|
mov bl,[cvidmode]
|
||||||
cmp byte[GUITBWVID+ebx],0
|
cmp byte[GUITBWVID+ebx],0
|
||||||
je near .notriplebufferwin
|
je near .notriplebufferwin
|
||||||
GUIClickCButton 11,123,byte[TripleBufferWin]
|
GUIClickCButtonT 11,123,byte[TripleBufferWin],byte[vsyncon]
|
||||||
.notriplebufferwin
|
.notriplebufferwin
|
||||||
%endif
|
%endif
|
||||||
xor ebx,ebx
|
xor ebx,ebx
|
||||||
@@ -2285,8 +2302,10 @@ DisplayGUIVideoClick:
|
|||||||
je .nocheckboxi2
|
je .nocheckboxi2
|
||||||
GUIClickCButton3 11,163,byte[antienab],byte[cfginterp],1
|
GUIClickCButton3 11,163,byte[antienab],byte[cfginterp],1
|
||||||
.nocheckboxi2
|
.nocheckboxi2
|
||||||
|
|
||||||
GUIPHoldbutton 128,60,164,71,4
|
GUIPHoldbutton 128,60,164,71,4
|
||||||
|
mov al,[vsyncon]
|
||||||
|
mov byte[cfgvsync],al
|
||||||
|
xor al,al
|
||||||
ret
|
ret
|
||||||
|
|
||||||
GUINumValue dd 0
|
GUINumValue dd 0
|
||||||
|
|||||||
Reference in New Issue
Block a user