示例#1
0
文件: boxes.cpp 项目: xywei/texmacs
cursor
box_rep::find_check_cursor (path p) {
  bool found;
  path bp= find_box_path (p, found);
  cursor cu= find_cursor (bp);
  cu->valid= found;
  return cu;
}
示例#2
0
/*! Initializes the VGA text display. */
static void init(void) {
    /* Already initialized? */
    static bool inited;
    if (!inited) {
        fb = ptov(0xb8000);
        find_cursor(&cx, &cy);
        inited = true; 
    }
}
int MWindow::zoom_sample(int64_t zoom_sample)
{
	CLIP(zoom_sample, 1, 0x100000);
	edl->local_session->zoom_sample = zoom_sample;
	find_cursor();

	TimelinePane *pane = gui->get_focused_pane();
	samplemovement(edl->local_session->view_start[pane->number], pane->number);
	return 0;
}