Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
gambas
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Custom issue tracker
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
3
Snippets
Groups
Projects
Show more breadcrumbs
Gambas
gambas
Commits
1ea56909
Commit
1ea56909
authored
1 year ago
by
Benoît Minisini
Browse files
Options
Downloads
Patches
Plain Diff
TextHighlighter: Fix Paint() method.
[GB.HIGHLIGHT] * BUG: TextHighlighter: Fix Paint() method.
parent
e815d714
No related branches found
No related tags found
No related merge requests found
Pipeline
#1053442248
passed
1 year ago
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
comp/src/gb.highlight/.src/TextHighlighter.class
+3
-2
3 additions, 2 deletions
comp/src/gb.highlight/.src/TextHighlighter.class
with
3 additions
and
2 deletions
comp/src/gb.highlight/.src/TextHighlighter.class
+
3
−
2
View file @
1ea56909
...
...
@@ -492,7 +492,7 @@ Public Sub Paint(Text As String, X As Float, Y As Float, Optional Theme As Varia
Dim P As Integer
Dim iColor As Integer
Dim iLine As Integer
Dim XB As
Integer
Dim XB As
Float
Dim fCharWidth As Float
Dim LH, BW As Integer
Dim LB As Integer
...
...
@@ -525,8 +525,8 @@ Public Sub Paint(Text As String, X As Float, Y As Float, Optional Theme As Varia
If P < Pos Then
'iLen -= Pos - P
$sToken = String.Mid$($sToken, Pos - P + 1)
P = Pos
$sToken = String.Mid$($sLine, P)
Endif
If fCharWidth Then
...
...
@@ -535,6 +535,7 @@ Public Sub Paint(Text As String, X As Float, Y As Float, Optional Theme As Varia
X = X0 + Paint.Font.TextWidth(String.Mid($sLine, Pos, P - Pos))
Endif
X = Int(X)
iColor = $hStyle.Color
Paint.Background = iColor
If $hStyle.Bold Then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment