harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r585221 - /harmony/enhanced/classlib/trunk/modules/awt/src/main/native/linuxfont/unix/LinuxNativeFont.c
Date Tue, 16 Oct 2007 19:00:37 GMT
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");
         }
     }



Mime
View raw message