Closed Bug 905853 Opened 11 years ago Closed 11 years ago

gfx/gl/GLConsts.h nits fix.

Categories

(Core :: Graphics, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla26

People

(Reporter: guillaume.abadie, Assigned: guillaume.abadie)

References

Details

Attachments

(1 file)

Pushed gfx/gl/GLConsts.h a little bit to fast.
Attached patch patch revision 1Splinter Review
Attachment #791030 - Flags: review?(jgilbert)
Comment on attachment 791030 [details] [diff] [review]
patch revision 1

Review of attachment 791030 [details] [diff] [review]:
-----------------------------------------------------------------

::: gfx/gl/GLParseRegistryXML.py
@@ +54,5 @@
>                      '#define GLCONSTS_H_',
>                      '',
>                      '/**',
>                      ' * GENERATED FILE, DO NOT MODIFY DIRECTLY.',
> +                    ' * this is a file generated directly from the official OpenGL registry',

s/this/This/

@@ +77,5 @@
>          define = '#define LOCAL_' + lib + '_' + name
> +        whitespace = 60 - len(define)
> +        
> +        if whitespace < 0:
> +            whitespace = whitespace % 4

Let's do %8, since it should line things up better automagically.
Attachment #791030 - Flags: review?(jgilbert) → review+
(In reply to Jeff Gilbert [:jgilbert] from comment #2)
> Comment on attachment 791030 [details] [diff] [review]
> patch revision 1
> 
> Review of attachment 791030 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> ::: gfx/gl/GLParseRegistryXML.py
> @@ +54,5 @@
> >                      '#define GLCONSTS_H_',
> >                      '',
> >                      '/**',
> >                      ' * GENERATED FILE, DO NOT MODIFY DIRECTLY.',
> > +                    ' * this is a file generated directly from the official OpenGL registry',
> 
> s/this/This/
Oups... Fixed!
> 
> @@ +77,5 @@
> >          define = '#define LOCAL_' + lib + '_' + name
> > +        whitespace = 60 - len(define)
> > +        
> > +        if whitespace < 0:
> > +            whitespace = whitespace % 4
> 
> Let's do %8, since it should line things up better automagically.
Fixed!
https://hg.mozilla.org/mozilla-central/rev/70848736309b
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: