Subversion Repositories Kolibri OS

Rev

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

Rev 9679 Rev 9715
Line 1... Line 1...
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;                                                              ;;
2
;;                                                              ;;
3
;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2022. All rights reserved. ;;
4
;; Distributed under terms of the GNU General Public License    ;;
4
;; Distributed under terms of the GNU General Public License    ;;
5
;;                                                              ;;
5
;;                                                              ;;
6
;;  VESA20.INC                                                  ;;
6
;;  VESA20.INC                                                  ;;
7
;;                                                              ;;
7
;;                                                              ;;
8
;;  Vesa 2.0 functions for MenuetOS                             ;;
8
;;  Vesa 2.0 functions for MenuetOS                             ;;
Line 15... Line 15...
15
;;                                                              ;;
15
;;                                                              ;;
16
;;  See file COPYING for details                                ;;
16
;;  See file COPYING for details                                ;;
17
;;                                                              ;;
17
;;                                                              ;;
18
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
18
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 19... Line 19...
19
 
19
 
Line 20... Line 20...
20
$Revision: 9679 $
20
$Revision: 9715 $
21
 
21
 
22
uglobal
22
uglobal
23
align 4
23
align 4
Line 187... Line 187...
187
        and     edx, 0xFFFF
187
        and     edx, 0xFFFF
188
        shr     eax, 16
188
        shr     eax, 16
189
        mov     [putimg.image_cx], eax
189
        mov     [putimg.image_cx], eax
190
        mov     [putimg.image_cy], edx
190
        mov     [putimg.image_cy], edx
191
; calculate absolute (i.e. screen) coordinates
191
; calculate absolute (i.e. screen) coordinates
192
        ;mov     eax, [TASK_BASE]
-
 
193
        mov     eax, [current_slot_idx]
192
        mov     eax, [current_slot_idx]
194
        shl     eax, 5 ; sizeof.WDATA
193
        shl     eax, BSF sizeof.WDATA
195
        mov     ebx, [eax + window_data + WDATA.box.left]
194
        mov     ebx, [eax + window_data + WDATA.box.left]
196
        add     ebx, [putimg.image_cx]
195
        add     ebx, [putimg.image_cx]
197
        mov     [putimg.abs_cx], ebx
196
        mov     [putimg.abs_cx], ebx
198
        mov     ebx, [eax +window_data + WDATA.box.top]
197
        mov     ebx, [eax +window_data + WDATA.box.top]
199
        add     ebx, [putimg.image_cy]
198
        add     ebx, [putimg.image_cy]
Line 1401... Line 1400...
1401
        jle     .exit
1400
        jle     .exit
1402
        mov     [drbar.bar_sy], edx
1401
        mov     [drbar.bar_sy], edx
1403
        mov     [drbar.bar_sx], ecx
1402
        mov     [drbar.bar_sx], ecx
1404
        mov     [drbar.bar_cx], eax
1403
        mov     [drbar.bar_cx], eax
1405
        mov     [drbar.bar_cy], ebx
1404
        mov     [drbar.bar_cy], ebx
1406
        ;mov     edi, [TASK_BASE]
-
 
1407
        mov     edi, [current_slot_idx]
1405
        mov     edi, [current_slot_idx]
1408
        shl     edi, 5 ; sizeof.WDATA
1406
        shl     edi, BSF sizeof.WDATA
1409
        add     eax, [edi + window_data + WDATA.box.left]        ; win_cx
1407
        add     eax, [edi + window_data + WDATA.box.left]        ; win_cx
1410
        add     ebx, [edi + window_data + WDATA.box.top]         ; win_cy
1408
        add     ebx, [edi + window_data + WDATA.box.top]         ; win_cy
1411
        mov     [drbar.abs_cx], eax
1409
        mov     [drbar.abs_cx], eax
1412
        mov     [drbar.abs_cy], ebx
1410
        mov     [drbar.abs_cy], ebx
1413
; real_sx = MIN(wnd_sx-bar_cx, bar_sx);
1411
; real_sx = MIN(wnd_sx-bar_cx, bar_sx);