Rev 4779 | Rev 4797 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4779 | Rev 4796 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | ;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa ;; |
4 | ;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa ;; |
5 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; Distributed under terms of the GNU General Public License ;; |
6 | ;; ;; |
6 | ;; ;; |
7 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
7 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 8... | Line 8... | ||
8 | 8 | ||
Line 9... | Line 9... | ||
9 | $Revision: 4779 $ |
9 | $Revision: 4796 $ |
10 | 10 | ||
11 | ;============================================================================== |
11 | ;============================================================================== |
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 | cmp edx, 192 |
|
- | 177 | jnae @f |
|
- | 178 | mov edx, 192 ; max size |
|
- | 179 | @@: |
|
176 | and edx, 255 |
180 | and edx, 255 |
177 | mov edi, common_colours |
181 | mov edi, common_colours |
178 | mov ecx, edx |
182 | mov ecx, edx |
179 | rep movsb |
183 | rep movsb |
180 | mov [windowtypechanged], ebx |
184 | mov [windowtypechanged], ebx |
181 | ret |
185 | ret |
182 | ;------------------------------------------------------------------------------ |
186 | ;------------------------------------------------------------------------------ |
183 | align 4 |
187 | align 4 |
184 | syscall_display_settings.03: |
188 | syscall_display_settings.03: |
185 | mov edi, ecx |
189 | mov edi, ecx |
- | 190 | cmp edx, 192 |
|
- | 191 | jnae @f |
|
- | 192 | mov edx, 192 ; max size |
|
- | 193 | @@: |
|
186 | and edx, 255 |
194 | and edx, 255 |
187 | mov esi, common_colours |
195 | mov esi, common_colours |
188 | mov ecx, edx |
196 | mov ecx, edx |
189 | rep movsb |
197 | rep movsb |
190 | ret |
198 | ret |