diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-11-27 16:58:34 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-11-27 17:04:21 +0300 |
commit | f1c994c555da7c3e27984cc26b7f226badbe670d (patch) | |
tree | a42c43762e56cad6f59f50922ef4c341b5632826 /source/blender/editors/space_text/space_text.c | |
parent | f6cefbef22c8c6583b4927c179dabac3eb57aa22 (diff) |
Cleanup: move space text vars into a runtime struct
Also use more descriptive names.
Diffstat (limited to 'source/blender/editors/space_text/space_text.c')
-rw-r--r-- | source/blender/editors/space_text/space_text.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/editors/space_text/space_text.c b/source/blender/editors/space_text/space_text.c index ae7c3b001e7..b477e3838bd 100644 --- a/source/blender/editors/space_text/space_text.c +++ b/source/blender/editors/space_text/space_text.c @@ -117,7 +117,7 @@ static SpaceLink *text_duplicate(SpaceLink *sl) /* clear or remove stuff from old */ - stextn->drawcache = NULL; /* space need it's own cache */ + stextn->runtime.drawcache = NULL; /* space need it's own cache */ return (SpaceLink *)stextn; } @@ -314,8 +314,9 @@ static void text_cursor(wmWindow *win, ScrArea *sa, ARegion *ar) SpaceText *st = sa->spacedata.first; int wmcursor = WM_CURSOR_TEXT_EDIT; - if (st->text && - BLI_rcti_isect_pt(&st->txtbar, win->eventstate->x - ar->winrct.xmin, st->txtbar.ymin)) { + if (st->text && BLI_rcti_isect_pt(&st->runtime.scroll_region_handle, + win->eventstate->x - ar->winrct.xmin, + st->runtime.scroll_region_handle.ymin)) { wmcursor = WM_CURSOR_DEFAULT; } |