Subversion Repositories Kolibri OS

Rev

Rev 1037 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1037 Rev 1199
Line 1... Line 1...
1
;**************************************************************
1
;**************************************************************
2
; Dinamic Button Macro for Kolibri OS
2
; Dinamic Button Macro for Kolibri OS
3
; Copyright (c) 2009, Mario79
3
; Copyright (c) 2009, Marat Zakiyanov aka Mario79, aka Mario
4
; All rights reserved.
4
; All rights reserved.
5
;
5
;
6
; Redistribution and use in source and binary forms, with or without
6
; Redistribution and use in source and binary forms, with or without
7
; modification, are permitted provided that the following conditions are met:
7
; modification, are permitted provided that the following conditions are met:
8
;     * Redistributions of source code must retain the above copyright
8
;     * Redistributions of source code must retain the above copyright
Line 12... Line 12...
12
;       documentation and/or other materials provided with the distribution.
12
;       documentation and/or other materials provided with the distribution.
13
;     * Neither the name of the  nor the
13
;     * Neither the name of the  nor the
14
;       names of its contributors may be used to endorse or promote products
14
;       names of its contributors may be used to endorse or promote products
15
;       derived from this software without specific prior written permission.
15
;       derived from this software without specific prior written permission.
16
;
16
;
17
; THIS SOFTWARE IS PROVIDED BY Mario79 ''AS IS'' AND ANY
17
; THIS SOFTWARE IS PROVIDED BY Marat Zakiyanov ''AS IS'' AND ANY
18
; EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18
; EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19
; WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19
; WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20
; DISCLAIMED. IN NO EVENT SHALL  BE LIABLE FOR ANY
20
; DISCLAIMED. IN NO EVENT SHALL  BE LIABLE FOR ANY
21
; DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21
; DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22
; (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22
; (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
Line 65... Line 65...
65
	cmp    db_select,dword 1
65
	cmp    db_select,dword 1
66
	je     .active_1
66
	je     .active_1
67
	cmp    db_select,dword 2
67
	cmp    db_select,dword 2
68
	je     .click_2
68
	je     .click_2
69
	mov    ebx,db_passive_raw
69
	mov    ebx,db_passive_raw
70
	jmp    .draw_2 ;@f
70
	jmp    .draw_2 
71
.active_1:
71
.active_1:
72
	mov    ebx,db_active_raw
72
	mov    ebx,db_active_raw
73
	jmp   .draw_2  ;@f
73
	jmp   .draw_2 
74
.click_2:
74
.click_2:
75
	mov    ebx,db_click_raw
75
	mov    ebx,db_click_raw
76
@@:
76
@@:
77
.draw_2:
77
.draw_2:
78
    mov   cx,db_size_x
78
    mov   cx,db_size_x