Skip to content

Instantly share code, notes, and snippets.

View matjam's full-sized avatar

Nathan Ollerenshaw matjam

View GitHub Profile
glyphBit(const FT_GlyphSlot &glyph, const int x, const int y)
{
int pitch = abs(glyph->bitmap.pitch);
unsigned char *row = &glyph->bitmap.buffer[pitch * y];
char cValue = row[x >> 3];
return (cValue & (128 >> (x & 7))) != 0;
}
// When update() is called, we scan through each character and look in the m_glyph_images map
@matjam
matjam / gist:ffd408cbb0bf89905018c9554918fffa
Last active March 29, 2024 22:09
env vars for hyprland
#!/usr/bin/bash
export XCURSOR_SIZE=24
export QT_QPA_PLATFORMTHEME=qt5ct # change to qt6ct if you have that
export ELECTRON_OZONE_PLATFORM_HINT=auto
export GDK_BACKEND=wayland,x11
export SDL_VIDEODRIVER=wayland
export CLUTTER_BACKEND=wayland
export MOZ_ENABLE_WAYLAND=1
export MOZ_DISABLE_RDD_SANDBOX=1
// the simplest MEGA65 test
.cpu _45gs02
* = $2001
.word basend // next BASIC line
.word 1206 // line #
.byte $fe,$02,$30 // BANK 0
.byte $3a,$9e // :SYS