Skip to content

Instantly share code, notes, and snippets.

@amuramatsu
Created June 12, 2018 15:15
Show Gist options
  • Save amuramatsu/d075a6315cbecea9d49b9e1fdc778a3a to your computer and use it in GitHub Desktop.
Save amuramatsu/d075a6315cbecea9d49b9e1fdc778a3a to your computer and use it in GitHub Desktop.
--- emacs-26.1/src/nsimage.m.orig 2018-04-23 23:18:03.000000000 +0900
+++ emacs-26.1/src/nsimage.m 2018-06-13 00:11:25.342576409 +0900
@@ -259,7 +259,7 @@
c = *s++;
for (k = 0; i < w && k < 8; ++k, ++i)
{
- if (c & 0x80)
+ if (c & 0x01)
{
*rr++ = fgr;
*gg++ = fgg;
@@ -274,7 +274,7 @@
*alpha++ = bg_alpha;
}
idx++;
- c <<= 1;
+ c >>= 1;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment