diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-02-19 10:00:20 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-02-19 10:00:20 +0400 |
commit | cc90116c5a4be64fe55b86aad9fc9f47185690d8 (patch) | |
tree | eabb23a7960f67afee30d5a03a635565f215c919 /source/blender/windowmanager/intern/wm_draw.c | |
parent | e43c80620c5568171a6c2b4e0d66686ef9d540d0 (diff) |
style cleanyp: split > 120 width lines.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_draw.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_draw.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/source/blender/windowmanager/intern/wm_draw.c b/source/blender/windowmanager/intern/wm_draw.c index 4fe11044d30..df4ebfd9b9f 100644 --- a/source/blender/windowmanager/intern/wm_draw.c +++ b/source/blender/windowmanager/intern/wm_draw.c @@ -90,9 +90,16 @@ static void wm_paintcursor_draw(bContext *C, ARegion *ar) if (ELEM(win->grabcursor, GHOST_kGrabWrap, GHOST_kGrabHide)) { int x = 0, y = 0; wm_get_cursor_position(win, &x, &y); - pc->draw(C, x - ar_other->winrct.xmin, y - ar_other->winrct.ymin, pc->customdata); - } else { - pc->draw(C, win->eventstate->x - ar_other->winrct.xmin, win->eventstate->y - ar_other->winrct.ymin, pc->customdata); + pc->draw(C, + x - ar_other->winrct.xmin, + y - ar_other->winrct.ymin, + pc->customdata); + } + else { + pc->draw(C, + win->eventstate->x - ar_other->winrct.xmin, + win->eventstate->y - ar_other->winrct.ymin, + pc->customdata); } } } @@ -458,7 +465,8 @@ static int wm_triple_gen_textures(wmWindow *win, wmDrawTriple *triple) if(triple->x[x] > maxsize || triple->y[y] > maxsize) { glBindTexture(triple->target, 0); - printf("WM: failed to allocate texture for triple buffer drawing (texture too large for graphics card).\n"); + printf("WM: failed to allocate texture for triple buffer drawing " + "(texture too large for graphics card).\n"); return 0; } |