|
@@ -29,7 +29,6 @@
|
|
/*************************************************************************/
|
|
/*************************************************************************/
|
|
#include "text_edit.h"
|
|
#include "text_edit.h"
|
|
|
|
|
|
-#include "editor/editor_scale.h"
|
|
|
|
#include "message_queue.h"
|
|
#include "message_queue.h"
|
|
#include "os/input.h"
|
|
#include "os/input.h"
|
|
#include "os/keyboard.h"
|
|
#include "os/keyboard.h"
|
|
@@ -37,6 +36,10 @@
|
|
#include "project_settings.h"
|
|
#include "project_settings.h"
|
|
#include "scene/main/viewport.h"
|
|
#include "scene/main/viewport.h"
|
|
|
|
|
|
|
|
+#ifdef TOOLS_ENABLED
|
|
|
|
+#include "editor/editor_scale.h"
|
|
|
|
+#endif
|
|
|
|
+
|
|
#define TAB_PIXELS
|
|
#define TAB_PIXELS
|
|
|
|
|
|
static bool _is_text_char(CharType c) {
|
|
static bool _is_text_char(CharType c) {
|
|
@@ -735,7 +738,11 @@ void TextEdit::_notification(int p_what) {
|
|
}
|
|
}
|
|
|
|
|
|
if (text.is_breakpoint(line) && !draw_breakpoint_gutter) {
|
|
if (text.is_breakpoint(line) && !draw_breakpoint_gutter) {
|
|
|
|
+#ifdef TOOLS_ENABLED
|
|
VisualServer::get_singleton()->canvas_item_add_rect(ci, Rect2(xmargin_beg, ofs_y + get_row_height() - EDSCALE, xmargin_end - xmargin_beg, EDSCALE), cache.breakpoint_color);
|
|
VisualServer::get_singleton()->canvas_item_add_rect(ci, Rect2(xmargin_beg, ofs_y + get_row_height() - EDSCALE, xmargin_end - xmargin_beg, EDSCALE), cache.breakpoint_color);
|
|
|
|
+#else
|
|
|
|
+ VisualServer::get_singleton()->canvas_item_add_rect(ci, Rect2(xmargin_beg, ofs_y, xmargin_end - xmargin_beg, get_row_height()), cache.breakpoint_color);
|
|
|
|
+#endif
|
|
}
|
|
}
|
|
|
|
|
|
// draw breakpoint marker
|
|
// draw breakpoint marker
|