Kaydet (Commit) 8859b4b5 authored tarafından Noel Grandin's avatar Noel Grandin

fix gdb helper for Color

after
    commit d487d6e0
    Date:   Sat Apr 20 11:06:11 2019 +0900
    rework Color to have R,G,B,A public variables

Change-Id: I0ebbb071d2fad43bd49ef8421804657dfdfc446d
Reviewed-on: https://gerrit.libreoffice.org/71041
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 0ec98930
......@@ -44,11 +44,10 @@ class ColorPrinter(object):
self.val = val
def to_string(self):
color = self.val['mnColor']
b = color & 0xff
g = (color >> 8) & 0xff
r = (color >> 16) & 0xff
a = (color >> 24) & 0xff
r = self.val['R']
g = self.val['G']
b = self.val['B']
a = self.val['A']
if a:
return "rgba(%d, %d, %d, %d)" % (r, g, b, a)
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment