Rev 5865 | Rev 5870 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5865 | Rev 5867 | ||
---|---|---|---|
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: 5865 $ |
9 | $Revision: 5867 $ |
10 | 10 | ||
11 | ;============================================================================== |
11 | ;============================================================================== |
Line 128... | Line 128... | ||
128 | ;> eax = 0 — off, 1 — on, 2 — subpixel |
128 | ;> eax = 0 — off, 1 — on, 2 — subpixel |
129 | ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
129 | ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
130 | ;; Set font smoothing: |
130 | ;; Set font smoothing: |
131 | ;< ebx = 10 |
131 | ;< ebx = 10 |
132 | ;< ecx = 0 — off, 1 — on, 2 — subpixel |
132 | ;< ecx = 0 — off, 1 — on, 2 — subpixel |
- | 133 | ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
|
- | 134 | ;; Get font size: |
|
- | 135 | ;< ebx = 11 |
|
- | 136 | ;> eax = height in pixels |
|
- | 137 | ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
|
- | 138 | ;; Set font size: |
|
- | 139 | ;< ebx = 12 |
|
- | 140 | ;< ecx = height in pixels |
|
133 | ;------------------------------------------------------------------------------ |
141 | ;------------------------------------------------------------------------------ |
134 | cmp ebx, .sizeof.ftable / 4 |
142 | cmp ebx, .sizeof.ftable / 4 |
135 | ja @f |
143 | ja @f |
136 | jmp [.ftable + ebx * 4] |
144 | jmp [.ftable + ebx * 4] |
137 | ;------------------------------------------------------------------------------ |
145 | ;------------------------------------------------------------------------------ |
Line 262... | Line 270... | ||
262 | ;------------------------------------------------------------------------------ |
270 | ;------------------------------------------------------------------------------ |
263 | syscall_display_settings.10: |
271 | syscall_display_settings.10: |
264 | mov [fontSmoothing], cl |
272 | mov [fontSmoothing], cl |
265 | ret |
273 | ret |
266 | ;------------------------------------------------------------------------------ |
274 | ;------------------------------------------------------------------------------ |
- | 275 | syscall_display_settings.11: |
|
- | 276 | xor eax, eax |
|
- | 277 | mov al, [fontSize] |
|
- | 278 | mov [esp + 32], eax |
|
- | 279 | ret |
|
- | 280 | ;------------------------------------------------------------------------------ |
|
- | 281 | syscall_display_settings.12: |
|
- | 282 | mov [fontSize], cl |
|
- | 283 | ret |
|
- | 284 | ;------------------------------------------------------------------------------ |
|
267 | syscall_display_settings._.calculate_whole_screen: |
285 | syscall_display_settings._.calculate_whole_screen: |
268 | xor eax, eax |
286 | xor eax, eax |
269 | xor ebx, ebx |
287 | xor ebx, ebx |
270 | mov ecx, [_display.width] |
288 | mov ecx, [_display.width] |
271 | mov edx, [_display.height] |
289 | mov edx, [_display.height] |
Line 1392... | Line 1410... | ||
1392 | ;///// private functions ////////////////////////////////////////////////////// |
1410 | ;///// private functions ////////////////////////////////////////////////////// |
1393 | ;============================================================================== |
1411 | ;============================================================================== |
Line 1394... | Line 1412... | ||
1394 | 1412 | ||
1395 | iglobal |
1413 | iglobal |
1396 | FuncTable syscall_display_settings, ftable, \ |
1414 | FuncTable syscall_display_settings, ftable, \ |
Line 1397... | Line 1415... | ||
1397 | 00, 01, 02, 03, 04, 05, 06, 07, 08, 09, 10 |
1415 | 00, 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12 |
1398 | 1416 | ||
1399 | align 4 |
1417 | align 4 |
1400 | window_topleft dd \ |
1418 | window_topleft dd \ |