mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
only downsample size if its an emoji
This commit is contained in:
@ -122,7 +122,7 @@ void main() {
|
|||||||
// TODO: for now, we assume this means it is a full width character
|
// TODO: for now, we assume this means it is a full width character
|
||||||
// TODO: in the future, use unicode libs to verify this.
|
// TODO: in the future, use unicode libs to verify this.
|
||||||
vec2 glyph_size_downsampled = glyph_size;
|
vec2 glyph_size_downsampled = glyph_size;
|
||||||
if (glyph_size.x > cell_size.x) {
|
if (mode_in == MODE_FG_COLOR && glyph_size.x > cell_size.x) {
|
||||||
glyph_size_downsampled.x = cell_size.x * 2;
|
glyph_size_downsampled.x = cell_size.x * 2;
|
||||||
glyph_size_downsampled.y = glyph_size.y * (glyph_size_downsampled.x / glyph_size.x);
|
glyph_size_downsampled.y = glyph_size.y * (glyph_size_downsampled.x / glyph_size.x);
|
||||||
glyph_offset_calc.y = glyph_offset.y * (glyph_size_downsampled.x / glyph_size.x);
|
glyph_offset_calc.y = glyph_offset.y * (glyph_size_downsampled.x / glyph_size.x);
|
||||||
|
Reference in New Issue
Block a user