Пример #1
0
/*
 * Force a screen update.
 */
void term_update(void) {
    Context ctx;
    ctx = get_ctx();
    if (ctx) {
	do_paint (ctx, TRUE);
	free_ctx (ctx);
	nl_count = 0;
	scroll_heuristic = 0;
    }
}
Пример #2
0
/*
 * Paint the window in response to a WM_PAINT message.
 */
void term_paint (Context ctx, int l, int t, int r, int b) {
    int i, j, left, top, right, bottom;

    left = l / font_width;
    right = (r - 1) / font_width;
    top = t / font_height;
    bottom = (b - 1) / font_height;
    for (i = top; i <= bottom && i < rows ; i++)
      for (j = left; j <= right && j < cols ; j++)
	    disptext[i*(cols+1)+j] = ATTR_INVALID;

    do_paint (ctx, FALSE);
}
Пример #3
0
LRESULT CALLBACK track_wndproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
{
	dprintf("track: wndproc %p %08x %08x %08lx", hwnd, msg, wparam, lparam);
	switch (msg)
	{
	case WM_PAINT:
		do_paint( hwnd );
		break;
	case WM_LBUTTONDOWN:
		do_leftbuttondown( hwnd );
		break;
	case WM_MOUSEMOVE:
		do_mousemove( hwnd, LOWORD(lparam), HIWORD(lparam));
		break;
	case WM_CLOSE:
		PostQuitMessage( 1 );
	}
	return DefWindowProc(hwnd, msg, wparam, lparam);
}
Пример #4
0
void
InfoBoxContentCirclingAverageSpark::on_custom_paint(InfoBoxWindow &infobox, Canvas &canvas)
{
  do_paint(infobox, canvas, CommonInterface::Calculated().trace_history.CirclingAverage,
    false);
}
Пример #5
0
void
InfoBoxContentNettoVarioSpark::on_custom_paint(InfoBoxWindow &infobox, Canvas &canvas)
{
  do_paint(infobox, canvas, CommonInterface::Calculated().trace_history.NettoVario);
}