From cc90116c5a4be64fe55b86aad9fc9f47185690d8 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 19 Feb 2012 06:00:20 +0000 Subject: style cleanyp: split > 120 width lines. --- source/blender/windowmanager/intern/wm_draw.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'source/blender/windowmanager/intern/wm_draw.c') 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; } -- cgit v1.2.3