]> code.delx.au - gnu-emacs/blobdiff - src/w32uniscribe.c
* frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
[gnu-emacs] / src / w32uniscribe.c
index ce2dd1663131cdb2bbc8204c9049cecf4d8fb8fd..2522430224756bf5e3bb044e68479eb55192b00a 100644 (file)
@@ -524,9 +524,9 @@ uniscribe_encode_char (font, c)
               result = ScriptGetCMap (context, &(uniscribe_font->cache),
                                       ch, len, 0, glyphs);
               if (SUCCEEDED (result))
-                return glyphs[0];
+                code = glyphs[0];
               else
-                return 0; /* notdef - enough in some cases to get the script
+                code = 0; /* notdef - enough in some cases to get the script
                              engine working, but not others... */
             }
        }