Browse Source

switch back to vertical bar cursor

David Rose 24 years ago
parent
commit
2e1ba33307
1 changed files with 7 additions and 7 deletions
  1. 7 7
      panda/src/pgui/qppgEntry.cxx

+ 7 - 7
panda/src/pgui/qppgEntry.cxx

@@ -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();
 
 
-  /*
-  LineSegs ls;
+  qpLineSegs 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());
+  */
 }
 }
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////