461,10 → 461,10 |
je @f |
movzx eax, word[BOOT_VARS+BOOT_PITCH] ; for other modes |
@@: |
mov [_display.lfb_pitch], eax |
mov [_display.pitch], eax |
mov eax, [_display.width] |
mul [_display.height] |
mov [_display.win_map_size], eax |
mov [_WinMapSize], eax |
|
call calculate_fast_getting_offset_for_WinMapAddress |
; for Qemu or non standart video cards |
659,8 → 659,8 |
mov [graph_data_l+4], al |
mov [graph_data_l+7], ah |
|
stdcall kernel_alloc, [_display.win_map_size] |
mov [_display.win_map], eax |
stdcall kernel_alloc, [_WinMapSize] |
mov [_WinMapAddress], eax |
|
xor eax, eax |
inc eax |
2112,7 → 2112,7 |
movzx ebx, word [MOUSE_X] |
mov eax, [d_width_calc_area + eax*4] |
|
add eax, [_display.win_map] |
add eax, [_WinMapAddress] |
movzx edx, byte [ebx+eax] |
shl edx, 8 |
mov esi, [edx+SLOT_BASE+APPDATA.cursor] |
2539,7 → 2539,7 |
pushfd |
cli |
mov eax, ecx |
mov ecx, [_display.lfb_pitch] |
mov ecx, [_display.pitch] |
mov [_display.width], eax |
dec eax |
mov [_display.height], edx |
3823,7 → 3823,7 |
.start_x: |
add eax, ecx |
mov ebp, [d_width_calc_area + ebx*4] |
add ebp, [_display.win_map] |
add ebp, [_WinMapAddress] |
movzx ebp, byte[eax+ebp] ; get value for current point |
cmp ebp, edi |
jne @f |
3868,9 → 3868,9 |
;----------------------------------------------------------------------------- |
align 4 |
calculatebackground: ; background |
mov edi, [_display.win_map] ; set os to use all pixels |
mov edi, [_WinMapAddress] ; set os to use all pixels |
mov eax, 0x01010101 |
mov ecx, [_display.win_map_size] |
mov ecx, [_WinMapSize] |
shr ecx, 2 |
rep stosd |
|
5026,7 → 5026,7 |
mov [esp+32], eax |
ret |
.3: ; bytes per scanline |
mov eax, [_display.lfb_pitch] |
mov eax, [_display.pitch] |
mov [esp+32], eax |
ret |
|
5193,7 → 5193,7 |
align 4 |
@@: |
mov eax, [d_width_calc_area + ecx*4] |
add eax, [_display.win_map] |
add eax, [_WinMapAddress] |
movzx eax, byte[eax+ebx] ; get value for current point |
;-------------------------------------- |
align 4 |
5332,7 → 5332,7 |
|
pushad |
mov edx, [d_width_calc_area + ebx*4] |
add edx, [_display.win_map] |
add edx, [_WinMapAddress] |
movzx edx, byte [eax+edx] |
cmp dl, byte 1 |
jne @f |
5433,7 → 5433,7 |
cld |
@@: |
stosd |
add eax, [_display.lfb_pitch] |
add eax, [_display.pitch] |
dec ecx |
jnz @r |
ret |
5448,7 → 5448,7 |
pushfd |
cli |
|
mov [_display.lfb_pitch], ecx |
mov [_display.pitch], ecx |
|
mov [screen_workarea.right], eax |
mov [screen_workarea.bottom], edx |
5462,14 → 5462,14 |
cmp [do_not_touch_winmap], 1 |
je @f |
|
stdcall kernel_free, [_display.win_map] |
stdcall kernel_free, [_WinMapAddress] |
|
mov eax, [_display.width] |
mul [_display.height] |
mov [_display.win_map_size], eax |
mov [_WinMapSize], eax |
|
stdcall kernel_alloc, eax |
mov [_display.win_map], eax |
mov [_WinMapAddress], eax |
test eax, eax |
jz .epic_fail |
; store for f.18.24 |