Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
b33847ec
Commit
b33847ec
authored
May 18, 2003
by
Eric Petit
Browse files
modules/gui/beos/MessagesWindow.cpp : fixed a minor scrolling issue
parent
b7a07a65
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/gui/beos/MessagesWindow.cpp
View file @
b33847ec
...
...
@@ -2,7 +2,7 @@
* MessagesWindow.cpp: beos interface
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: MessagesWindow.cpp,v 1.1
0
2003/05/1
7 18
:30:
41
titer Exp $
* $Id: MessagesWindow.cpp,v 1.1
1
2003/05/1
8 22
:30:
33
titer Exp $
*
* Authors: Eric Petit <titer@videolan.org>
*
...
...
@@ -39,6 +39,17 @@
*****************************************************************************/
void
MessagesView
::
Pulse
()
{
bool
isScrolling
=
false
;
if
(
fScrollBar
->
LockLooper
()
)
{
float
min
,
max
;
fScrollBar
->
GetRange
(
&
min
,
&
max
);
if
(
fScrollBar
->
Value
()
!=
max
)
isScrolling
=
true
;
fScrollBar
->
UnlockLooper
();
}
int
i_start
,
oldLength
;
char
*
psz_module_type
=
NULL
;
rgb_color
red
=
{
200
,
0
,
0
};
...
...
@@ -100,10 +111,10 @@ void MessagesView::Pulse()
vlc_mutex_unlock
(
p_sub
->
p_lock
);
}
/* Scroll at the end unless the is user is selecting something */
/* Scroll at the end unless the is user is
scrolling or
selecting something */
int32
start
,
end
;
GetSelection
(
&
start
,
&
end
);
if
(
start
==
end
&&
fScrollBar
->
LockLooper
()
)
if
(
!
isScrolling
&&
start
==
end
&&
fScrollBar
->
LockLooper
()
)
{
float
min
,
max
;
fScrollBar
->
GetRange
(
&
min
,
&
max
);
...
...
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