]> 4ch.mooo.com Git - 16.git/blobdiff - 16/xlib/xpoint.asm
in the process of converting xlib into watcom friendly
[16.git] / 16 / xlib / xpoint.asm
index a2be8bfe5dcbc3b04a3c08e73af787d0f31e09b9..f6bed9612dc7c4264cfc9a8f281d3dc6c8b0eab8 100755 (executable)
@@ -33,7 +33,7 @@ include xpoint.inc
 ;\r
 ;\r
 \r
-_x_put_pix  proc    \r
+_x_put_pix  proc\r
        ARG X:word,Y:word,PgOfs:word,Color:word\r
        push bp                   ;preserve caller's stack frame\r
        mov  bp,sp                ;point to local stack frame\r
@@ -41,7 +41,8 @@ _x_put_pix  proc
        mov  ax,[_ScrnLogicalByteWidth]\r
        mul  [Y]                  ;offset of pixel's scan line in page\r
        mov  bx,[X]\r
-       shr  bx,2                 ;X/4 = offset of pixel in scan line\r
+       shr  bx,1                 ;X/4 = offset of pixel in scan line\r
+       shr  bx,1                 ;X/4 = offset of pixel in scan line\r
        add  bx,ax                ;offset of pixel in page\r
        add  bx,[PgOfs]           ;offset of pixel in display memory\r
        mov  ax,SCREEN_SEG\r
@@ -100,8 +101,3 @@ _x_get_pix   proc
         ret\r
 _x_get_pix   endp\r
         end\r
-\r
-\r
-       end\r
-\r
-\1a
\ No newline at end of file