From afbfdc507bfaafc8824a9808311d57a9ece87510 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 7 Jul 2011 21:14:06 +0000 Subject: Rename incorrect instances of tqrepaint[...] to repaint[...] git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1240369 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- chalk/colorspaces/wetsticky/ws/canvas.c | 28 ++++++++++++++-------------- chalk/colorspaces/wetsticky/ws/canvas.h | 6 +++--- chalk/colorspaces/wetsticky/ws/engine.c | 2 +- chalk/colorspaces/wetsticky/ws/engine3.c | 2 +- 4 files changed, 19 insertions(+), 19 deletions(-) (limited to 'chalk/colorspaces/wetsticky') diff --git a/chalk/colorspaces/wetsticky/ws/canvas.c b/chalk/colorspaces/wetsticky/ws/canvas.c index 77cfa17d..d6940294 100644 --- a/chalk/colorspaces/wetsticky/ws/canvas.c +++ b/chalk/colorspaces/wetsticky/ws/canvas.c @@ -35,14 +35,14 @@ CELL canvas[CANVAS_WIDTH][CANVAS_HEIGHT]; and are removed by the next_cell_for_tqrepaint() function. The pointer to the current tail of the list is updated by side-effect. */ -static POINT need_tqrepainting[REDRAW_LIMIT]; +static POINT need_repainting[REDRAW_LIMIT]; static int next_free = 0; static int next_to_tqrepaint = 0; /* *********************************************************************** */ -int number_of_tqrepaints_needed() -/* Returns the number of cells that need to be tqrepainted. */ +int number_of_repaints_needed() +/* Returns the number of cells that need to be repainted. */ { return (next_free); @@ -53,7 +53,7 @@ int number_of_tqrepaints_needed() void need_to_tqrepaint(point) /* The cell at this location needs to be redrawn since it has been altered. Scan the list to see if it is already - scheduled for a tqrepainting operation and only add it if + scheduled for a repainting operation and only add it if it is not there. */ POINT point; @@ -70,27 +70,27 @@ POINT point; /* Check whether this point is already on the list. */ for (k=0; k < next_free; k++) { - if ((need_tqrepainting[k].x == point.x) && - (need_tqrepainting[k].y == point.y)) break; + if ((need_repainting[k].x == point.x) && + (need_repainting[k].y == point.y)) break; } if (k < next_free) return; /* Already in the list. */ /* Add this new cell address to the end of the list. */ - need_tqrepainting[next_free].x = point.x; - need_tqrepainting[next_free].y = point.y; + need_repainting[next_free].x = point.x; + need_repainting[next_free].y = point.y; next_free++; } /* *********************************************************************** */ void next_cell_for_tqrepaint(cell, locus) -/* This routine returns the next cell to be tqrepainted, together with its +/* This routine returns the next cell to be repainted, together with its location on the canvas. This is determined by taking the next point - from the need_tqrepainting list and accessing its cell. If the list is + from the need_repainting list and accessing its cell. If the list is empty then return NIL. - Note that the tqrepainting operation will clear out the list before + Note that the repainting operation will clear out the list before any other new positions are added. */ CELL_PTR *cell; @@ -103,9 +103,9 @@ void next_cell_for_tqrepaint(cell, locus) return; } - *(cell) = get_cell(need_tqrepainting[next_to_tqrepaint]); - locus->x = need_tqrepainting[next_to_tqrepaint].x; - locus->y = need_tqrepainting[next_to_tqrepaint].y; + *(cell) = get_cell(need_repainting[next_to_tqrepaint]); + locus->x = need_repainting[next_to_tqrepaint].x; + locus->y = need_repainting[next_to_tqrepaint].y; next_to_tqrepaint++; } diff --git a/chalk/colorspaces/wetsticky/ws/canvas.h b/chalk/colorspaces/wetsticky/ws/canvas.h index c2f2bcbf..57453e7b 100644 --- a/chalk/colorspaces/wetsticky/ws/canvas.h +++ b/chalk/colorspaces/wetsticky/ws/canvas.h @@ -19,11 +19,11 @@ Wet and Sticky is free software; you can redistribute it and/or modify it under */ -extern int number_of_tqrepaints_needed(); -/* Returns the number of cells needing to tqrepainted. */ +extern int number_of_repaints_needed(); +/* Returns the number of cells needing to repainted. */ extern void need_to_tqrepaint (/* POINT */); -/* Requests that the cell at the given point be tqrepainted +/* Requests that the cell at the given point be repainted at the next update as it has been modified. */ extern void next_cell_for_tqrepaint (/* *CELL_PTR, POINT_PTR */); diff --git a/chalk/colorspaces/wetsticky/ws/engine.c b/chalk/colorspaces/wetsticky/ws/engine.c index 2fb4917e..b3855bda 100644 --- a/chalk/colorspaces/wetsticky/ws/engine.c +++ b/chalk/colorspaces/wetsticky/ws/engine.c @@ -122,7 +122,7 @@ void donate_paint(source, srcLocus, amount, dest, destLocus) to the destination cell. The destination cell must mix this new paint with its existing paint to yield a new paint. This routine is also responsible for recording which cells - have been updated and so need tqrepainting. + have been updated and so need repainting. A special case is recognised where the destination has not yet had any paint applied. This causes the donated paint to become diff --git a/chalk/colorspaces/wetsticky/ws/engine3.c b/chalk/colorspaces/wetsticky/ws/engine3.c index 9fd274cd..fceb0c05 100644 --- a/chalk/colorspaces/wetsticky/ws/engine3.c +++ b/chalk/colorspaces/wetsticky/ws/engine3.c @@ -122,7 +122,7 @@ void donate_paint(source, srcLocus, amount, dest, destLocus) to the destination cell. The destination cell must mix this new paint with its existing paint to yield a new paint. This routine is also responsible for recording which cells - have been updated and so need tqrepainting. + have been updated and so need repainting. A special case is recognised where the destination has not yet had any paint applied. This causes the donated paint to become -- cgit v1.2.1