optimisation
This commit is contained in:
parent
bcc53c4bec
commit
21306ecd08
1 changed files with 0 additions and 12 deletions
|
|
@ -404,26 +404,14 @@ draw_checkbox:
|
||||||
mov dx, bx
|
mov dx, bx
|
||||||
add dx, GUI_CHECKBOX_SIZE ; Y2
|
add dx, GUI_CHECKBOX_SIZE ; Y2
|
||||||
|
|
||||||
; Sauvegarde coords pour le X
|
|
||||||
push ax
|
|
||||||
push bx
|
|
||||||
push cx
|
|
||||||
push dx
|
|
||||||
|
|
||||||
; Fond blanc + Bordure noire
|
; Fond blanc + Bordure noire
|
||||||
GFX RECTANGLE_FILL, ax, bx, cx, dx, PATTERN_WHITE, 15, 0
|
GFX RECTANGLE_FILL, ax, bx, cx, dx, PATTERN_WHITE, 15, 0
|
||||||
GFX RECTANGLE, ax, bx, cx, dx, 0
|
GFX RECTANGLE, ax, bx, cx, dx, 0
|
||||||
|
|
||||||
pop dx
|
|
||||||
pop cx
|
|
||||||
pop bx
|
|
||||||
pop ax
|
|
||||||
|
|
||||||
; Check if checked
|
; Check if checked
|
||||||
cmp word [gs:si + widget.thumb_pos], 0
|
cmp word [gs:si + widget.thumb_pos], 0
|
||||||
je .draw_label
|
je .draw_label
|
||||||
|
|
||||||
|
|
||||||
; Dessin du X (Diagonales)
|
; Dessin du X (Diagonales)
|
||||||
add ax, 2
|
add ax, 2
|
||||||
add bx, 2
|
add bx, 2
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue