~ubuntu-branches/ubuntu/saucy/monodevelop/saucy-proposed

« back to all changes in this revision

Viewing changes to src/core/Mono.Texteditor/Mono.TextEditor/FoldingScreenbackgroundRenderer.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2010-09-10 16:54:48 UTC
  • mfrom: (19.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100910165448-0rybfk25zd4o9431
Tags: 2.4+dfsg-2
* debian/patches/inject_Mono.Debugger.Soft_source.patch,
  debian/patches/use_system_Mono.Debugger.Soft.patch,
  debian/control:
  + Build against system Soft Debugger, since we now have a new
    enough Mono to match MonoDevelop's required API

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
                        this.roles = new Roles[this.foldSegments.Count];
56
56
                }
57
57
 
58
 
                public void Draw (Gdk.Drawable drawable, Gdk.Rectangle area, LineSegment lineSegment, int x, int y)
 
58
                public void Draw (Gdk.Drawable drawable, Gdk.Rectangle area, LineSegment lineSegment, int x, int y, int lineHeight)
59
59
                {
60
60
                        int foundSegment = -1;
61
61
                        if (lineSegment != null) {
116
116
                                                rectangleWidth = (int)(width - xPos - 6 * (segment + 1));
117
117
                                                role = roles[segment];
118
118
                                        }
119
 
                                        DrawRoundRectangle (cr, (role & Roles.Start) == Roles.Start, (role & Roles.End) == Roles.End, xPos, y, editor.LineHeight / 2, rectangleWidth, editor.LineHeight);
 
119
                                        DrawRoundRectangle (cr, (role & Roles.Start) == Roles.Start, (role & Roles.End) == Roles.End, xPos, y, editor.LineHeight / 2, rectangleWidth, lineHeight);
120
120
                                        cr.Color = Style.ToCairoColor (hslColor);
121
121
                                        cr.Fill ();
122
122
                        /*              if (segment == foldSegments.Count - 1) {
134
134
                        //              gc.Dispose ();
135
135
                }
136
136
 
137
 
                public static void DrawRoundRectangle (Cairo.Context cr, bool upperRound, bool lowerRound, int x, int y, int r, int w, int h)
 
137
                public static void DrawRoundRectangle (Cairo.Context cr, bool upperRound, bool lowerRound, double x, double y, double r, double w, double h)
138
138
                {
139
139
                        //  UA****BQ
140
140
                        //  H      C