From 78a6ad634454fcfafb733cab2f0c9f3d367ed407 Mon Sep 17 00:00:00 2001 From: Jinhao Date: Fri, 27 Mar 2020 07:35:58 +0800 Subject: [PATCH] fix issue that output of glyph pixel is wrong --- source/detail/platform_abstraction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/detail/platform_abstraction.cpp b/source/detail/platform_abstraction.cpp index d540ea1a..ce0ad993 100644 --- a/source/detail/platform_abstraction.cpp +++ b/source/detail/platform_abstraction.cpp @@ -385,10 +385,10 @@ namespace nana if('\t' != *p) { ::XftGlyphExtents(disp_, xft, glyph_indexes, 1, &extent); - *pxbuf = extent.xOff; + *pxbuf++ = extent.xOff; } else - *pxbuf = 0;//tab_pixels_; + *pxbuf++ = 0;//tab_pixels_; ++glyph_indexes; }