Subversion Repositories Kolibri OS

Rev

Rev 5722 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5722 Rev 5750
Line 117... Line 117...
117
        and     [USERbox.flags], not ed_focus
117
        and     [USERbox.flags], not ed_focus
118
        or      [USERbox.flags], ed_disabled
118
        or      [USERbox.flags], ed_disabled
119
        or      [PASSbox.flags], ed_focus
119
        or      [PASSbox.flags], ed_focus
Line 120... Line 120...
120
 
120
 
121
        mov     [status], STATUS_REQ_LOGIN
121
        mov     [status], STATUS_REQ_LOGIN
122
        inc     [update_gui]
122
        or      [work], WORK_GUI
123
  @@:
123
  @@:
124
        mcall   5, 10
124
        mcall   5, 10
125
        cmp     [status], STATUS_LOGIN
125
        cmp     [status], STATUS_LOGIN
126
        je      @f
126
        je      @f
Line 245... Line 245...
245
        rep movsb
245
        rep movsb
246
        mov     byte[edi], 0
246
        mov     byte[edi], 0
247
        mov     [name.dash], "-"
247
        mov     [name.dash], "-"
Line 248... Line 248...
248
 
248
 
249
        DEBUGF  1, "Sending pixel format\n"
-
 
250
if BITS_PER_PIXEL = 8
249
        DEBUGF  1, "Sending pixel format\n"
251
        mcall   send, [socketnum], SetPixelFormat8, 20, 0
-
 
252
else if BITS_PER_PIXEL = 16
-
 
253
        mcall   send, [socketnum], SetPixelFormat16, 20, 0
-
 
254
else if BITS_PER_PIXEL = 24
-
 
255
        mcall   send, [socketnum], SetPixelFormat24, 20, 0
-
 
256
else
-
 
257
        mcall   send, [socketnum], SetPixelFormat32, 20, 0
-
 
Line 258... Line 250...
258
end if
250
        mcall   send, [socketnum], SetPixelFormat, 20, 0
259
 
251
 
Line 260... Line 252...
260
        DEBUGF  1, "Sending encoding info\n"
252
        DEBUGF  1, "Sending encoding info\n"
Line 340... Line 332...
340
        je      encoding_RRE
332
        je      encoding_RRE
341
        cmp     eax, 15
333
        cmp     eax, 15
342
        je      encoding_TRLE
334
        je      encoding_TRLE
343
        cmp     eax, 16
335
        cmp     eax, 16
344
        je      encoding_ZRLE
336
        je      encoding_ZRLE
-
 
337
        cmp     eax, 0xffffff11
-
 
338
        je      encoding_cursor
Line 345... Line 339...
345
 
339
 
346
        DEBUGF  2, "unknown encoding: %u\n", eax
340
        DEBUGF  2, "unknown encoding: %u\n", eax
Line 347... Line 341...
347
        jmp     thread_loop
341
        jmp     thread_loop
348
 
342
 
349
next_rectangle:
343
next_rectangle:
350
        inc     [update_framebuffer]
344
        or      [work], WORK_FRAMEBUFFER
351
        dec     [rectangles]
345
        dec     [rectangles]
Line 460... Line 454...
460
        jmp     .more
454
        jmp     .more
Line 461... Line 455...
461
 
455
 
462
 
456
 
463
err_disconnected:
457
err_disconnected:
464
        mov     [status], STATUS_DISCONNECTED
458
        mov     [status], STATUS_DISCONNECTED
Line 465... Line 459...
465
        inc     [update_gui]
459
        or      [work], WORK_GUI
466
        mcall   -1
460
        mcall   -1
467
 
461
 
468
err_dns:
462
err_dns:
Line 469... Line 463...
469
        mov     [status], STATUS_DNS_ERR
463
        mov     [status], STATUS_DNS_ERR
470
        inc     [update_gui]
464
        or      [work], WORK_GUI
471
        mcall   -1
465
        mcall   -1
472
 
466
 
473
err_sock:
467
err_sock:
474
; TODO: distinguish between different socket errors!
468
; TODO: distinguish between different socket errors!
Line 475... Line 469...
475
        DEBUGF  2, "Socket error: %u\n", ebx
469
        DEBUGF  2, "Socket error: %u\n", ebx
476
        mov     [status], STATUS_SOCK_ERR
470
        mov     [status], STATUS_SOCK_ERR
477
        inc     [update_gui]
471
        or      [work], WORK_GUI
478
        mcall   -1
472
        mcall   -1
479
 
473
 
Line 480... Line 474...
480
err_connect:
474
err_connect:
481
        mov     [status], STATUS_CONNECT_ERR
475
        mov     [status], STATUS_CONNECT_ERR
482
        inc     [update_gui]
476
        or      [work], WORK_GUI
483
        mcall   -1
477
        mcall   -1
484
        ret
478
        ret
Line 485... Line 479...
485
 
479
 
486
err_proto:
480
err_proto:
Line 505... Line 499...
505
        rep movsb
499
        rep movsb
506
        mov     byte[edi], 0
500
        mov     byte[edi], 0
507
        mov     [status], STATUS_SECURITY_ERR_C
501
        mov     [status], STATUS_SECURITY_ERR_C
508
  .no_msg:
502
  .no_msg:
Line 509... Line 503...
509
 
503
 
510
        inc     [update_gui]
504
        or      [work], WORK_GUI
511
        mcall   -1
505
        mcall   -1
Line 512... Line 506...
512
        ret
506
        ret
513
 
507
 
514
err_login:
508
err_login:
515
        mov     [status], STATUS_LOGIN_FAILED
509
        mov     [status], STATUS_LOGIN_FAILED
516
        inc     [update_gui]
510
        or      [work], WORK_GUI