summaryrefslogtreecommitdiff
path: root/atari/treeview.c
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2013-12-28 01:34:20 +0100
committerOle Loots <ole@monochrom.net>2013-12-28 01:34:20 +0100
commit0a471e0b065bb3ed595ef66c7eca57561cfcd488 (patch)
tree690fd0831c90402820f39b790ded21299b79acc4 /atari/treeview.c
parentad2cbae63e695a3b67c6c4cd9c7f9499231bf4c6 (diff)
downloadnetsurf-0a471e0b065bb3ed595ef66c7eca57561cfcd488.tar.gz
netsurf-0a471e0b065bb3ed595ef66c7eca57561cfcd488.tar.bz2
Removed obsolete code
Diffstat (limited to 'atari/treeview.c')
-rw-r--r--atari/treeview.c133
1 files changed, 1 insertions, 132 deletions
diff --git a/atari/treeview.c b/atari/treeview.c
index 8ac099c7e..8c7330640 100644
--- a/atari/treeview.c
+++ b/atari/treeview.c
@@ -297,140 +297,9 @@ void atari_treeview_redraw(struct core_window *cw)
}
}
-//
-//// TODO: rename to atari_treeview_draw_content
-//void atari_treeview_redraw(struct atari_treeview_window *tv)
-//{
-// static FONT_PLOTTER vdi_txt_plotter = NULL;
-// FONT_PLOTTER old_txt_plotter;
-//
-// VdiHdl plot_vdi_handle = 0;
-// long atari_plot_flags = 0;
-// short pxy[4];
-// struct rect clip;
-//
-// /* TODO: do not use the global vdi handle for plot actions! */
-// /* TODO: implement getter/setter for the vdi handle */
-//
-// if (tv != NULL && tv->is_open) {
-// if( tv->redraw && ((atari_plot_flags & PLOT_FLAG_OFFSCREEN) == 0) ) {
-//
-// atari_treeview_dump_info(tv, "atari_treeview_redraw");
-//
-// plot_vdi_handle = plot_get_vdi_handle();
-// long atari_plot_flags = plot_get_flags();
-// short todo[4];
-// GRECT work;
-// short handle = gemtk_wm_get_handle(tv->window);
-// struct gemtk_wm_scroll_info_s *slid;
-//
-///*
-// if (vdi_txt_plotter == NULL) {
-// int err = 0;
-// VdiHdl vdih = plot_get_vdi_handle();
-// vdi_txt_plotter = new_font_plotter(vdih, (char*)"vdi", PLOT_FLAG_TRANS,
-// &err);
-// if(err) {
-// const char * desc = plot_err_str(err);
-// die(("Unable to load vdi font plotter %s -> %s", "vdi", desc ));
-// }
-// }
-//*/
-// gemtk_wm_get_grect(tv->window, GEMTK_WM_AREA_CONTENT, &work);
-// slid = gemtk_wm_get_scroll_info(tv->window);
-//
-// struct redraw_context ctx = {
-// .interactive = true,
-// .background_images = true,
-// .plot = &atari_plotters
-// };
-// plot_set_dimensions(work.g_x, work.g_y, work.g_w, work.g_h);
-// if (plot_lock() == false)
-// return;
-///*
-// if(vdi_txt_plotter != NULL){
-// old_txt_plotter = plot_get_text_plotter();
-// plot_set_text_plotter(vdi_txt_plotter);
-// }
-//*/
-// if( wind_get(handle, WF_FIRSTXYWH,
-// &todo[0], &todo[1], &todo[2], &todo[3] )!=0 ) {
-// while (todo[2] && todo[3]) {
-//
-// pxy[0] = todo[0];
-// pxy[1] = todo[1];
-// pxy[2] = todo[0] + todo[2]-1;
-// pxy[3] = todo[1] + todo[3]-1;
-// //vs_clip(plot_vdi_handle, 1, (short*)&pxy);
-//
-// /* convert screen to treeview coords: */
-// todo[0] = todo[0] - work.g_x + slid->x_pos*slid->x_unit_px;
-// todo[1] = todo[1] - work.g_y + slid->y_pos*slid->y_unit_px;
-// if( todo[0] < 0 ){
-// todo[2] = todo[2] + todo[0];
-// todo[0] = 0;
-// }
-// if( todo[1] < 0 ){
-// todo[3] = todo[3] + todo[1];
-// todo[1] = 0;
-// }
-//
-// clip.x0 = todo[0];
-// clip.y0 = todo[1];
-// clip.x1 = clip.x0 + todo[2];
-// clip.y1 = clip.y0 + todo[3];
-//
-// clip.x0 = todo[0];
-// clip.y0 = todo[1];
-// clip.x1 = clip.x0 + todo[2] ;
-// clip.y1 = clip.y0 + todo[3] ;
-///*
-// clip.x0 = 0;
-// clip.y0 = 0;
-// clip.x1 = work.g_w;//MAX(tv->extent.x, work.g_w);
-// clip.y1 = MAX(tv->extent.y, work.g_h)+200;
-//*/
-// dbg_rect("treeview redraw clip", &clip);
-//
-// if (rc_intersect((GRECT *)&tv->rdw_area,(GRECT *)&todo)) {
-// tv->io->draw(tv, -(slid->x_pos*slid->x_unit_px),
-// -(slid->y_pos*slid->y_unit_px), &clip,
-// &ctx);
-//
-// /*tv->io->draw(tv, 0,0, &clip,
-// &ctx);*/
-// }
-// //vs_clip(plot_vdi_handle, 0, (short*)&pxy);
-// if (wind_get(handle, WF_NEXTXYWH,
-// &todo[0], &todo[1], &todo[2], &todo[3])==0) {
-// break;
-// }
-// }
-// } else {
-// /*
-// plot_set_text_plotter(old_txt_plotter);
-// */
-// plot_unlock();
-// return;
-// }
-// /*
-// plot_set_text_plotter(old_txt_plotter);
-// */
-// plot_unlock();
-// tv->redraw = false;
-// tv->rdw_area.g_x = 65000;
-// tv->rdw_area.g_y = 65000;
-// tv->rdw_area.g_w = -1;
-// tv->rdw_area.g_h = -1;
-// } else {
-// /* just copy stuff from the offscreen buffer */
-// }
-// }
-//}
-
/**
- * GEMTK event sink
+ * GEMTK (netsurf's GEM toolkit) event sink
*
*/
static short handle_event(GUIWIN *win, EVMULT_OUT *ev_out, short msg[8])