Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-02-14 05:38:47 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-02-14 05:45:45 +0300
commit69be8039e80f55760ddc652bf79240d9d5ab38bc (patch)
treefaf2fde1a824eb6ee8fe407eac4c508602c17b5d /source/blender/editors/space_info/textview.h
parent75a5ea01c19563ae1ba427e9206f2eae637d6070 (diff)
Fix T73784: Python console: incorrect wrapped line cursor position
Regression in aa919f3e82020 Remove character margins, it complicated drawing & picking to have one margin in pixels and a second margin in characters. Replace this with an outer pixel-margin for drawing background colors.
Diffstat (limited to 'source/blender/editors/space_info/textview.h')
-rw-r--r--source/blender/editors/space_info/textview.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/space_info/textview.h b/source/blender/editors/space_info/textview.h
index 3f7ba9739c4..6fcd9d30abe 100644
--- a/source/blender/editors/space_info/textview.h
+++ b/source/blender/editors/space_info/textview.h
@@ -32,11 +32,11 @@ typedef struct TextViewContext {
int columns; /* shouldnt be needed! */
int row_vpadding;
- int margin_left_chars;
- int margin_right_chars;
- /** Area to draw: (0, 0, winx, winy) with a margin applied and scroll-bar subtracted. */
+ /** Area to draw text: (0, 0, winx, winy) with a margin applied and scroll-bar subtracted. */
rcti draw_rect;
+ /** Area to draw text background colors (extending beyond text in some cases). */
+ rcti draw_rect_outer;
/** Scroll offset in pixels. */
int scroll_ymin, scroll_ymax;