Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(7740)

Issue 6874050: Fix red colour in rgb value in pango.vala (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 4 months ago by maiku.fabian
Modified:
11 years, 4 months ago
Reviewers:
shawn.p.huang
CC:
fujiwara
Base URL:
git://github.com/ibus/ibus.git@master
Visibility:
Public.

Description

Fix red colour in rgb value in pango.vala The red part of the rgb value was always passed as 0 to Pango.attr_foreground_new(r, g, b) and Pango.attr_background_new(r, g, b). BUG=

Patch Set 1 #

Total comments: 1

Patch Set 2 : Added parentheses for blue as well #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -4 lines) Patch
M ui/gtk3/pango.vala View 1 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 6
maiku.fabian
11 years, 4 months ago (2012-12-03 08:24:14 UTC) #1
Peng
lgtm with one comment https://codereview.appspot.com/6874050/diff/1/ui/gtk3/pango.vala File ui/gtk3/pango.vala (left): https://codereview.appspot.com/6874050/diff/1/ui/gtk3/pango.vala#oldcode55 ui/gtk3/pango.vala:55: uint16 b = (uint16)(attr.value & ...
11 years, 4 months ago (2012-12-03 13:33:56 UTC) #2
maiku.fabian
On 2012/12/03 13:33:56, Peng wrote: > lgtm with one comment > > https://codereview.appspot.com/6874050/diff/1/ui/gtk3/pango.vala > File ...
11 years, 4 months ago (2012-12-03 13:41:08 UTC) #3
Peng
On 2012/12/03 13:41:08, maiku.fabian wrote: > On 2012/12/03 13:33:56, Peng wrote: > > lgtm with ...
11 years, 4 months ago (2012-12-03 15:21:56 UTC) #4
maiku.fabian
On 2012/12/03 15:21:56, Peng wrote: > On 2012/12/03 13:41:08, maiku.fabian wrote: > > On 2012/12/03 ...
11 years, 4 months ago (2012-12-03 15:23:00 UTC) #5
Peng
11 years, 4 months ago (2012-12-04 15:51:30 UTC) #6
I just landed this CL. Please close it. Thanks.
On 2012/12/03 15:23:00, maiku.fabian wrote:
> On 2012/12/03 15:21:56, Peng wrote:
> > On 2012/12/03 13:41:08, maiku.fabian wrote:
> > > On 2012/12/03 13:33:56, Peng wrote:
> > > > lgtm with one comment
> > > > 
> > > > https://codereview.appspot.com/6874050/diff/1/ui/gtk3/pango.vala
> > > > File ui/gtk3/pango.vala (left):
> > > > 
> > > >
https://codereview.appspot.com/6874050/diff/1/ui/gtk3/pango.vala#oldcode55
> > > > ui/gtk3/pango.vala:55: uint16 b = (uint16)(attr.value & 0x000000ff) <<
8;
> > > > Could you please fix it as well?
> > > 
> > > That line works already as it is.
> > 
> > Yes, I know. Because blue only uses low 16bits. But for those expressions, I
> > thought vala will do bit shift first, and then the type cast. But seems I
was
> > wrong. So I would like add brackets for blue as well. To make it more
> readable.
> 
> OK, doing this ...
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b