Fixed MMX checkbox save; now checks for MMX when enabling in gui

This commit is contained in:
pagefault
2001-09-20 23:32:28 +00:00
parent c83bbf1aeb
commit c139a0d4b6
3 changed files with 19 additions and 1 deletions

View File

@@ -1344,6 +1344,20 @@ GUIWinClicked:
%%noclick
%endmacro
%macro GUIClickCButtonMMX 3
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
call MMXCheck
%%noclick
%endmacro
%macro GUISlidebarPostImpl 13 ; x1,y1,x2,y2,upjump,downjump,holdpos,scsize,view,cur,listsize
cmp dword[%11],0
je near %%nolower
@@ -2166,7 +2180,7 @@ DisplayGUIOptionClick:
GUIClickCButton2 11,36,byte[newengen],byte[cfgnewgfx],1
.invalidng
GUIClickCButtonAS 11,46,byte[AutoIncSaveSlot]
GUIClickCButton 11,56,byte[MMXSupport]
GUIClickCButtonMMX 11,56,byte[MMXSupport]
GUIClickCButtonM 11,66,byte[pl12s34]
%ifdef __MSDOS__
GUIClickCButton 11,76,byte[SidewinderFix]