Subversion Repositories Kolibri OS

Rev

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

Rev 4587 Rev 4923
Line 24... Line 24...
24
  common
24
  common
25
    name#.sizeof.#table_name = $ - name#.#table_name
25
    name#.sizeof.#table_name = $ - name#.#table_name
26
}
26
}
Line 27... Line 27...
27
 
27
 
28
uglobal
28
uglobal
29
  common_colours rd 32
29
  common_colours rd 48
30
  draw_limits    RECT
30
  draw_limits    RECT
Line 31... Line 31...
31
endg
31
endg
32
 
32
 
33
align 4
33
align 4
34
;------------------------------------------------------------------------------
34
;------------------------------------------------------------------------------
35
syscall_draw_window: ;///// system function 0 /////////////////////////////////
35
syscall_draw_window: ;///// system function 0 /////////////////////////////////
36
;------------------------------------------------------------------------------
36
;------------------------------------------------------------------------------
37
;? 
37
;? .
38
;------------------------------------------------------------------------------
38
;------------------------------------------------------------------------------
39
        mov     eax, edx
39
        mov     eax, edx
40
        shr     eax, 24
40
        shr     eax, 24
Line 171... Line 171...
171
;------------------------------------------------------------------------------
171
;------------------------------------------------------------------------------
172
align 4
172
align 4
173
syscall_display_settings.02:
173
syscall_display_settings.02:
174
        dec     ebx
174
        dec     ebx
175
        mov     esi, ecx
175
        mov     esi, ecx
176
        and     edx, 127
176
        cmp     edx, 192
-
 
177
        jnae    @f
-
 
178
        mov     edx, 192 ; max size
-
 
179
      @@:
177
        mov     edi, common_colours
180
        mov     edi, common_colours
178
        mov     ecx, edx
181
        mov     ecx, edx
179
        rep movsb
182
        rep movsb
180
        mov     [windowtypechanged], ebx
183
        mov     [windowtypechanged], ebx
181
        ret
184
        ret
182
;------------------------------------------------------------------------------
185
;------------------------------------------------------------------------------
183
align 4
186
align 4
184
syscall_display_settings.03:
187
syscall_display_settings.03:
185
        mov     edi, ecx
188
        mov     edi, ecx
186
        and     edx, 127
189
        cmp     edx, 192
-
 
190
        jnae    @f
-
 
191
        mov     edx, 192 ; max size
-
 
192
      @@:
187
        mov     esi, common_colours
193
        mov     esi, common_colours
188
        mov     ecx, edx
194
        mov     ecx, edx
189
        rep movsb
195
        rep movsb
190
        ret
196
        ret
191
;------------------------------------------------------------------------------
197
;------------------------------------------------------------------------------