Diff

Differences From Artifact [081582ab40]:

To Artifact [42c05c651f]:


422
423
424
425
426
427
428

429
430
431
432
433
434
435
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436







+







        char *bits;
        int size = (font_width+15)/16 * 2 * font_height; 
        bits = smalloc(size);
        memset(bits, 0, size);
        caretbm = CreateBitmap(font_width, font_height, 1, 1, bits);
        sfree(bits);
    }
    CreateCaret(hwnd, caretbm, font_width, font_height);

    /*
     * Initialise the scroll bar.
     */
    {
	SCROLLINFO si;

1394
1395
1396
1397
1398
1399
1400
1401

1402
1403
1404
1405
1406
1407
1408
1395
1396
1397
1398
1399
1400
1401

1402
1403
1404
1405
1406
1407
1408
1409







-
+







	pending_netevent = TRUE;
	pend_netevent_wParam=wParam;
	pend_netevent_lParam=lParam;
	time(&last_movement);
	return 0;
      case WM_SETFOCUS:
	has_focus = TRUE;
        CreateCaret(hwnd, caretbm, 0, 0);
        CreateCaret(hwnd, caretbm, font_width, font_height);
        ShowCaret(hwnd);
        compose_state = 0;
	term_out();
	term_update();
	break;
      case WM_KILLFOCUS:
	has_focus = FALSE;