switch back to vertical bar cursor

This commit is contained in:
David Rose 2002-03-20 15:45:04 +00:00
parent fe30a13f72
commit 2e1ba33307

View File

@ -25,9 +25,9 @@
#include "mouseWatcherParameter.h" #include "mouseWatcherParameter.h"
#include "keyboardButton.h" #include "keyboardButton.h"
#include "mouseButton.h" #include "mouseButton.h"
#include "lineSegs.h" #include "qplineSegs.h"
#include "math.h" #include <math.h>
TypeHandle qpPGEntry::_type_handle; TypeHandle qpPGEntry::_type_handle;
@ -592,17 +592,17 @@ setup(float width, int num_lines) {
// Set up a default cursor: a vertical bar. // Set up a default cursor: a vertical bar.
clear_cursor_def(); clear_cursor_def();
/* qpLineSegs ls;
LineSegs ls;
ls.set_color(0.0f, 0.0f, 0.0f, 1.0f); ls.set_color(0.0f, 0.0f, 0.0f, 1.0f);
ls.move_to(0.0f, 0.0f, -0.15f * line_height); ls.move_to(0.0f, 0.0f, -0.15f * line_height);
ls.draw_to(0.0f, 0.0f, 0.85f * line_height); ls.draw_to(0.0f, 0.0f, 0.85f * line_height);
new RenderRelation(get_cursor_def(), ls.create()); get_cursor_def()->add_child(ls.create());
*/
/*
// An underscore cursor would work too. // An underscore cursor would work too.
text_node->set_text("_"); text_node->set_text("_");
get_cursor_def()->add_child(text_node->generate()); get_cursor_def()->add_child(text_node->generate());
*/
} }
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////