Subversion Repositories Kolibri OS

Rev

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

Rev 129 Rev 133
Line 125... Line 125...
125
        add     ebx, [putimg.image_cy]
125
        add     ebx, [putimg.image_cy]
126
        mov     [putimg.abs_cy], ebx
126
        mov     [putimg.abs_cy], ebx
Line 127... Line 127...
127
 
127
 
128
        ; real_sx = MIN(wnd_sx-image_cx, image_sx);
128
        ; real_sx = MIN(wnd_sx-image_cx, image_sx);
-
 
129
        mov     ebx, [eax-twdw + WDATA.box.width] ; ebx = wnd_sx
-
 
130
; \begin{diamond}[20.08.2006]
-
 
131
; note that WDATA.box.width is one pixel less than real window x-size
-
 
132
        inc     ebx
129
        mov     ebx, [eax-twdw + WDATA.box.width] ; ebx = wnd_sx
133
; \end{diamond}[20.08.2006]
130
        sub     ebx, [putimg.image_cx]
134
        sub     ebx, [putimg.image_cx]
131
        ja      @f
135
        ja      @f
132
        add     esp, putimg.stack_data
136
        add     esp, putimg.stack_data
133
        popad
137
        popad
134
        ret
138
        ret
135
      @@:
139
      @@:
136
        cmp     ebx, [putimg.image_sx]
140
        cmp     ebx, [putimg.image_sx]
137
        jbe     .end_x
141
        jbe     .end_x
138
        mov     ebx, [putimg.image_sx]
-
 
139
        dec     ebx
142
        mov     ebx, [putimg.image_sx]
140
      .end_x:
-
 
141
        inc     ebx
143
      .end_x:
Line 142... Line 144...
142
        mov     [putimg.real_sx], ebx
144
        mov     [putimg.real_sx], ebx
143
 
145
 
-
 
146
        ; init real_sy
-
 
147
        mov     ebx, [eax-twdw + WDATA.box.height] ; ebx = wnd_sy
-
 
148
; \begin{diamond}[20.08.2006]
144
        ; init real_sy
149
        inc     ebx
145
        mov     ebx, [eax-twdw + WDATA.box.height] ; ebx = wnd_sy
150
; \end{diamond}[20.08.2006]
146
        sub     ebx, [putimg.image_cy]
151
        sub     ebx, [putimg.image_cy]
147
        ja      @f
152
        ja      @f
148
        add     esp, putimg.stack_data
153
        add     esp, putimg.stack_data
149
        popad
154
        popad
150
        ret
155
        ret
151
      @@:
156
      @@:
152
        cmp     ebx, [putimg.image_sy]
157
        cmp     ebx, [putimg.image_sy]
153
        jbe     .end_y
-
 
154
        mov     ebx, [putimg.image_sy]
158
        jbe     .end_y
155
        dec     ebx
-
 
156
      .end_y:
159
        mov     ebx, [putimg.image_sy]
Line 157... Line 160...
157
        inc     ebx
160
      .end_y:
158
        mov     [putimg.real_sy], ebx
161
        mov     [putimg.real_sy], ebx
159
 
162
 
Line 609... Line 612...
609
        mov     [drbar.abs_cx], eax
612
        mov     [drbar.abs_cx], eax
610
        mov     [drbar.abs_cy], ebx
613
        mov     [drbar.abs_cy], ebx
Line 611... Line 614...
611
 
614
 
612
        ; real_sx = MIN(wnd_sx-bar_cx, bar_sx);
615
        ; real_sx = MIN(wnd_sx-bar_cx, bar_sx);
-
 
616
        mov     ebx, [edi-twdw + WDATA.box.width] ; ebx = wnd_sx
-
 
617
; \begin{diamond}[20.08.2006]
-
 
618
; note that WDATA.box.width is one pixel less than real window x-size
-
 
619
        inc     ebx
613
        mov     ebx, [edi-twdw + WDATA.box.width] ; ebx = wnd_sx
620
; \end{diamond}[20.08.2006]
614
        sub     ebx, [drbar.bar_cx]
621
        sub     ebx, [drbar.bar_cx]
615
        ja      @f
622
        ja      @f
616
  .exit:                       ;// mike.dld, 2005-01-29
623
  .exit:                       ;// mike.dld, 2005-01-29
617
        add     esp, drbar.stack_data
624
        add     esp, drbar.stack_data
Line 627... Line 634...
627
      .end_x:
634
      .end_x:
628
        mov     [drbar.real_sx], ebx
635
        mov     [drbar.real_sx], ebx
Line 629... Line 636...
629
 
636
 
630
        ; real_sy = MIN(wnd_sy-bar_cy, bar_sy);
637
        ; real_sy = MIN(wnd_sy-bar_cy, bar_sy);
-
 
638
        mov     ebx, [edi-twdw + WDATA.box.height] ; ebx = wnd_sy
-
 
639
; \begin{diamond}[20.08.2006]
-
 
640
        inc     ebx
631
        mov     ebx, [edi-twdw + WDATA.box.height] ; ebx = wnd_sy
641
; \end{diamond}
632
        sub     ebx, [drbar.bar_cy]
642
        sub     ebx, [drbar.bar_cy]
633
        ja      @f
643
        ja      @f
634
        add     esp, drbar.stack_data
644
        add     esp, drbar.stack_data
635
        popad
645
        popad