Subversion Repositories Kolibri OS

Rev

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

Rev 5677 Rev 5716
Line 36... Line 36...
36
        pop     eax
36
        pop     eax
Line 37... Line 37...
37
 
37
 
38
        mov     eax, [rectangle.y]
38
        mov     eax, [rectangle.y]
39
        movzx   ebx, [screen.width]
39
        movzx   ebx, [screen.width]
40
        mul     ebx                                     ; [screen.width]*[rectangle.y]
-
 
41
        mov     ebx, [rectangle.x]
40
        mul     ebx                                     ; [screen.width]*[rectangle.y]
42
        add     eax, ebx                                ; [screen.width]*[rectangle.y]+[rectangle.x]
41
        add     eax, [rectangle.x]                      ; [screen.width]*[rectangle.y]+[rectangle.x]
Line 43... Line 42...
43
        lea     edi, [framebuffer_data+eax*3]           ; edi = framebuffer_data+([screen.width]*[rectangle.y]+[rectangle.x])*3
42
        lea     edi, [framebuffer_data+eax*3]           ; edi = framebuffer_data+([screen.width]*[rectangle.y]+[rectangle.x])*3
44
 
43
 
45
        movzx   eax, [screen.width]
44
        movzx   eax, [screen.width]