/programs/network/vncc/trle.inc |
---|
File deleted |
\ No newline at end of file |
/programs/network/vncc/rre.inc |
---|
14,18 → 14,9 |
pixel_to_24bpp: ; returns in ecx |
push eax |
@@: |
lea eax, [esi+BYTES_PER_PIXEL] |
cmp [datapointer], eax |
jae @f |
call read_data.more |
jmp @b |
@@: |
if BITS_PER_PIXEL = 8 |
push ebx |
push eax ebx |
mov bl, 36 |
mov al, [esi] |
48,10 → 39,11 |
mov cl, al ; blue |
inc esi |
pop ebx |
pop ebx eax |
else if BITS_PER_PIXEL = 16 |
push eax |
lodsw |
mov cl, ah |
and al, 0xf8 ; red |
64,6 → 56,7 |
mov cl, al |
shl cl, 3 |
and cx, 0x00f8 ; blue |
pop eax |
else |
74,7 → 67,6 |
add esi, 3 |
end if |
pop eax |
ret |
/programs/network/vncc/vncc.asm |
---|
93,7 → 93,6 |
include "raw.inc" |
include "copyrect.inc" |
include "rre.inc" |
include "trle.inc" |
include "des.inc" |
START: |
439,9 → 438,6 |
.height dw ? |
.width dw ? |
palette rd 128 ; TRLE/ZRLE |
palettesize db ? ; TRLE/ZRLE |
keymap rw 128 |
keymap_shift rw 128 |
keymap_alt rw 128 |
/programs/network/vncc/raw.inc |
---|
38,7 → 38,8 |
mov eax, [rectangle.y] |
movzx ebx, [screen.width] |
mul ebx ; [screen.width]*[rectangle.y] |
add eax, [rectangle.x] ; [screen.width]*[rectangle.y]+[rectangle.x] |
mov ebx, [rectangle.x] |
add eax, ebx ; [screen.width]*[rectangle.y]+[rectangle.x] |
lea edi, [framebuffer_data+eax*3] ; edi = framebuffer_data+([screen.width]*[rectangle.y]+[rectangle.x])*3 |
movzx eax, [screen.width] |