From 13462b4457fb8846e5aecbf848a8d9b2f6e332ca Mon Sep 17 00:00:00 2001
From: stepan <stepan.sindelar@oracle.com>
Date: Mon, 12 Jun 2017 16:02:28 +0200
Subject: [PATCH] FastR Grid: Capitalize image device names to match GNU R

---
 .../r/library/fastrGrid/grDevices/InitWindowedDevice.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/fastrGrid/grDevices/InitWindowedDevice.java b/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/fastrGrid/grDevices/InitWindowedDevice.java
index 9825b273c1..49d65f6980 100644
--- a/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/fastrGrid/grDevices/InitWindowedDevice.java
+++ b/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/fastrGrid/grDevices/InitWindowedDevice.java
@@ -101,7 +101,7 @@ public final class InitWindowedDevice extends RExternalBuiltinNode {
         String filename = name.substring(name.lastIndexOf(':') + 1);
         try {
             BufferedImageDevice device = BufferedImageDevice.open(filename, formatName, width, height);
-            GridContext.getContext().setCurrentDevice(formatName, device);
+            GridContext.getContext().setCurrentDevice(formatName.toUpperCase(), device);
         } catch (NotSupportedImageFormatException e) {
             throw error(Message.GENERIC, String.format("Format '%s' is not supported.", formatName));
         }
-- 
GitLab