diff --git a/panda/src/pgui/qppgEntry.cxx b/panda/src/pgui/qppgEntry.cxx index 9f2c4bc5e6..5ebc41b211 100644 --- a/panda/src/pgui/qppgEntry.cxx +++ b/panda/src/pgui/qppgEntry.cxx @@ -25,9 +25,9 @@ #include "mouseWatcherParameter.h" #include "keyboardButton.h" #include "mouseButton.h" -#include "lineSegs.h" +#include "qplineSegs.h" -#include "math.h" +#include TypeHandle qpPGEntry::_type_handle; @@ -592,17 +592,17 @@ setup(float width, int num_lines) { // Set up a default cursor: a vertical bar. clear_cursor_def(); - /* - LineSegs ls; + qpLineSegs ls; ls.set_color(0.0f, 0.0f, 0.0f, 1.0f); ls.move_to(0.0f, 0.0f, -0.15f * 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. text_node->set_text("_"); get_cursor_def()->add_child(text_node->generate()); + */ } ////////////////////////////////////////////////////////////////////