diff --git a/lib/python/glnav.py b/lib/python/glnav.py index 77c6fbf7fc9..51bd7fb22c2 100644 --- a/lib/python/glnav.py +++ b/lib/python/glnav.py @@ -62,7 +62,7 @@ def use_pango_font(font, start, count, will_call_prepost=False): context.restore() w, h = int(w / Pango.SCALE), int(h / Pango.SCALE) glNewList(base+i, GL_COMPILE) - glBitmap(1, 0, 0, 0, 0, h-d, bytearray([0]*4)) + glBitmap(0, 0, 0, 0, 0, h-d, None) #glDrawPixels(0, 0, 0, 0, 0, h-d, ''); if not will_call_prepost: pango_font_pre() @@ -73,7 +73,7 @@ def use_pango_font(font, start, count, will_call_prepost=False): except Exception as e: print("glnav Exception ",e) - glBitmap(1, 0, 0, 0, w, -h+d, bytearray([0]*4)) + glBitmap(0, 0, 0, 0, w, -h+d, None) if not will_call_prepost: pango_font_post() glEndList() diff --git a/lib/python/qtvcp/lib/qt_vismach/primitives.py b/lib/python/qtvcp/lib/qt_vismach/primitives.py index 762c96e6f0d..3204bb39400 100644 --- a/lib/python/qtvcp/lib/qt_vismach/primitives.py +++ b/lib/python/qtvcp/lib/qt_vismach/primitives.py @@ -63,8 +63,7 @@ def use_pango_font(font, start, count, will_call_prepost=False): context.restore() w, h = int(w / Pango.SCALE), int(h / Pango.SCALE) GL.glNewList(base+i, GL.GL_COMPILE) - GL.glBitmap(1, 0, 0, 0, 0, h-d, bytearray([0]*4)) - #glDrawPixels(0, 0, 0, 0, 0, h-d, ''); + GL.glBitmap(0, 0, 0, 0, 0, h-d, None) if not will_call_prepost: pango_font_pre() if w and h: @@ -74,7 +73,7 @@ def use_pango_font(font, start, count, will_call_prepost=False): except Exception as e: print("glnav Exception ",e) - GL.glBitmap(1, 0, 0, 0, w, -h+d, bytearray([0]*4)) + GL.glBitmap(0, 0, 0, 0, w, -h+d, None) if not will_call_prepost: pango_font_post() GL.glEndList()