Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
5bbca7b8
Commit
5bbca7b8
authored
Apr 04, 2004
by
Olivier Teulière
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* skins2: Do not try anymore to display images whose width is 0.
This avoids warnings at run-time on Windows.
parent
e6b40c6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
modules/gui/skins2/controls/ctrl_text.cpp
modules/gui/skins2/controls/ctrl_text.cpp
+5
-2
No files found.
modules/gui/skins2/controls/ctrl_text.cpp
View file @
5bbca7b8
...
...
@@ -157,8 +157,11 @@ void CtrlText::draw( OSGraphics &rImage, int xDest, int yDest )
getPosition
()
->
getWidth
()
);
int
height
=
min
(
m_pCurrImg
->
getHeight
(),
getPosition
()
->
getHeight
()
);
// Draw the current image
rImage
.
drawBitmap
(
*
m_pCurrImg
,
-
m_xPos
,
0
,
xDest
,
yDest
,
width
,
height
);
if
(
width
>
0
&&
height
>
0
)
{
rImage
.
drawBitmap
(
*
m_pCurrImg
,
-
m_xPos
,
0
,
xDest
,
yDest
,
width
,
height
);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment