shithub: view

Download patch

ref: 84cf99a0f4f48ef411b49ec4575f2e5d47a7907d
parent: 0617f98c17987d70020991f9536d6794b0c12093
author: phil9 <telephil9@gmail.com>
date: Fri Nov 26 00:29:47 EST 2021

rename transformation ops

	use more accurate terms

--- a/view.c
+++ b/view.c
@@ -43,10 +43,10 @@
 	Mzoomin,
 	Mzoomout,
 	Morigsize,
-	Mhflip,
-	Mvflip,
-	Mrotleft,
-	Mrotright,
+	Mflip,
+	Mflop,
+	Mrotcw,
+	Mrotccw,
 	Mpipeto,
 };
 char *menu2str[] =
@@ -54,10 +54,10 @@
 	"zoom in",
 	"zoom out",
 	"orig. size",
-	"flip horiz.",
-	"flip vert.",
-	"rotate left",
-	"rotate right",
+	"flip",
+	"flop",
+	"rotate cw",
+	"rotate ccw",
 	"pipe to...",
 	nil,
 };
@@ -266,16 +266,16 @@
 	const char *cmd;
 
 	switch(op){
-	case Mhflip:
+	case Mflop:
 		cmd = "rotate -l";
 		break;
-	case Mvflip:
+	case Mflip:
 		cmd = "rotate -u";
 		break;
-	case Mrotleft:
+	case Mrotccw:
 		cmd = "rotate -r 270";
 		break;
-	case Mrotright:
+	case Mrotcw:
 		cmd = "rotate -r 90";
 		break;
 	default:
@@ -343,10 +343,10 @@
 	case Morigsize:
 		zoom(n);
 		return;
-	case Mhflip:
-	case Mvflip:
-	case Mrotleft:
-	case Mrotright:
+	case Mflip:
+	case Mflop:
+	case Mrotccw:
+	case Mrotcw:
 		i = rotate(n);
 		if(i == nil){
 			fprint(2, "unable to rotate image: %r\n");