Re: Shifting rotation grid with center of rotation: need help/feedback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Omari Stephens wrote:
> Hi, all
>
> I'm working on a patch which shifts the rotation grid so that a grid 
> intersection always falls on the center of rotation.

Hi!

Here is my initial feedback on the patch:

-          k = tr_tool->ngx + tr_tool->ngy;
+          k = tr_tool->ngx + 2 + tr_tool->ngy + 2;


+ 2 is way too magic here, that should either be a constant with a 
sensible name or preferably removed altogether.

+  fprintf(stderr, "\nBefore: (%f, %f) -> (%f, %f)\n", tr_tool->cx, tr_tool->cy,
+          tr_tool->tcx, tr_tool->tcy);


Please keep patches for review as small as possible, i.e. don't keep 
debug output in them

- Martin
_______________________________________________
Gimp-developer mailing list
Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux