Fix typo in d3d8/shader.c

Francois Gouget fgouget at free.fr
Tue Apr 20 13:13:02 CDT 2004


On Tue, 20 Apr 2004, Ivan Leo Murray-Smith wrote:

> This was confirmed as being a typo by Christian Costa. This patch applies
> against current CVS.
> License: LGPL

I propose this patch instead:


Changelog:

 * dlls/d3d8/shader.c

   Fix typos.


Index: dlls/d3d8/shader.c
===================================================================
RCS file: /var/cvs/wine/dlls/d3d8/shader.c,v
retrieving revision 1.21
diff -u -r1.21 shader.c
--- a/dlls/d3d8/shader.c	20 Apr 2004 00:28:48 -0000	1.21
+++ b/dlls/d3d8/shader.c	20 Apr 2004 12:26:23 -0000
@@ -703,19 +703,19 @@
         case 11: numTemps=12;
                  numConstants=96;
                  strcpy(tmpLine, "!!ARBvp1.0\n");
-                 TRACE_(d3d_hw_shader)("GL HW (%u) : %s", strlen(pgmStr), tmpLine); /* Dont add /n to this line as already in tmpLine */
+                 TRACE_(d3d_hw_shader)("GL HW (%u) : %s", strlen(pgmStr), tmpLine); /* Don't add \n to this line as already in tmpLine */
                  break;
         case 20: numTemps=12;
                  numConstants=256;
                  strcpy(tmpLine, "!!ARBvp2.0\n");
                  FIXME_(d3d_hw_shader)("No work done yet to support vs2.0 in hw\n");
-                 TRACE_(d3d_hw_shader)("GL HW (%u) : %s", strlen(pgmStr), tmpLine); /* Dont add /n to this line as already in tmpLine */
+                 TRACE_(d3d_hw_shader)("GL HW (%u) : %s", strlen(pgmStr), tmpLine); /* Don't add \n to this line as already in tmpLine */
                  break;
         case 30: numTemps=32;
                  numConstants=256;
                  strcpy(tmpLine, "!!ARBvp3.0\n");
                  FIXME_(d3d_hw_shader)("No work done yet to support vs3.0 in hw\n");
-                 TRACE_(d3d_hw_shader)("GL HW (%u) : %s", strlen(pgmStr), tmpLine); /* Dont add /n to this line as already in tmpLine */
+                 TRACE_(d3d_hw_shader)("GL HW (%u) : %s", strlen(pgmStr), tmpLine); /* Don't add \n to this line as already in tmpLine */
                  break;
         default:
                  numTemps=12;
@@ -729,7 +729,7 @@
         for (i = 0; i < nUseTempRegister/*we should check numTemps here*/; i++) {
             sprintf(tmpLine, "TEMP T%ld;\n", i);
 	    ++lineNum;
-            TRACE_(d3d_hw_shader)("GL HW (%u, %u) : %s", lineNum, strlen(pgmStr), tmpLine); /* Dont add /n to this line as already in tmpLine */
+            TRACE_(d3d_hw_shader)("GL HW (%u, %u) : %s", lineNum, strlen(pgmStr), tmpLine); /* Don't add \n to this line as already in tmpLine */
             strcat(pgmStr,tmpLine);
         }
 	for (i = 0; i < nUseAddressRegister; i++) {
@@ -822,7 +822,7 @@
             continue;

         default:
-            FIXME_(d3d_hw_shader)("Cant handle opcode %s in hwShader\n", curOpcode->name);
+            FIXME_(d3d_hw_shader)("Can't handle opcode %s in hwShader\n", curOpcode->name);
         }

 	if (curOpcode->num_params > 0) {
@@ -837,13 +837,13 @@
 	}
         strcat(tmpLine,";\n");
 	++lineNum;
-        TRACE_(d3d_hw_shader)("GL HW (%u, %u) : %s", lineNum, strlen(pgmStr), tmpLine); /* Dont add /n to this line as already in tmpLine */
+        TRACE_(d3d_hw_shader)("GL HW (%u, %u) : %s", lineNum, strlen(pgmStr), tmpLine); /* Don't add \n to this line as already in tmpLine */
         strcat(pgmStr, tmpLine);
       }
     }
     strcpy(tmpLine, "END\n");
     ++lineNum;
-    TRACE_(d3d_hw_shader)("GL HW (%u, %u) : %s", lineNum, strlen(pgmStr), tmpLine); /* Dont add /n to this line as already in tmpLine */
+    TRACE_(d3d_hw_shader)("GL HW (%u, %u) : %s", lineNum, strlen(pgmStr), tmpLine); /* Don't add \n to this line as already in tmpLine */
     strcat(pgmStr, tmpLine);
   }



-- 
Francois Gouget         fgouget at free.fr        http://fgouget.free.fr/
                     Avoid the Gates of Hell - use Linux.



More information about the wine-patches mailing list