You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by hi...@apache.org on 2007/10/16 21:00:37 UTC

svn commit: r585221 - /harmony/enhanced/classlib/trunk/modules/awt/src/main/native/linuxfont/unix/LinuxNativeFont.c

Author: hindessm
Date: Tue Oct 16 12:00:36 2007
New Revision: 585221

URL: http://svn.apache.org/viewvc?rev=585221&view=rev
Log:
Commit r584159 of HARMONY-4562 ([classlib][awt] Antialliasing is not
implemented on Linux) introduced references to a function,
newNullPointerException, that I removed from the Apache code base in
commit r423405 made over a year ago.

I've replaced these function calls with calls to the throwNPException
function that is used elsewhere in the same file and fairly consistently
in the rest of the native code.

Modified:
    harmony/enhanced/classlib/trunk/modules/awt/src/main/native/linuxfont/unix/LinuxNativeFont.c

Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/native/linuxfont/unix/LinuxNativeFont.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/linuxfont/unix/LinuxNativeFont.c?rev=585221&r1=585220&r2=585221&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/native/linuxfont/unix/LinuxNativeFont.c (original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/native/linuxfont/unix/LinuxNativeFont.c Tue Oct 16 12:00:36 2007
@@ -1786,13 +1786,13 @@
     XftPatternDel(mpattern, XFT_ANTIALIAS);
     if (isAntialiasing) {
         if (!XftPatternAddBool(mpattern, XFT_ANTIALIAS, True)) {
-            newNullPointerException(env,
+            throwNPException(env,
                 "Error during adding font antialias set to true to XFTPattern structure");
         }
 	}
     else {
         if (!XftPatternAddBool(mpattern, XFT_ANTIALIAS, False)) {
-            newNullPointerException(env,
+            throwNPException(env,
                 "Error during adding font antialias set to false to XFTPattern structure");
         }
     }