Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
d71063c3
Commit
d71063c3
authored
Apr 16, 2003
by
Emmanuel Puig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Removed debug calls
parent
f2c84d95
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
16 deletions
+2
-16
modules/gui/skins/controls/button.cpp
modules/gui/skins/controls/button.cpp
+1
-6
modules/gui/skins/src/window.cpp
modules/gui/skins/src/window.cpp
+1
-10
No files found.
modules/gui/skins/controls/button.cpp
View file @
d71063c3
...
...
@@ -2,7 +2,7 @@
* button.cpp: Button control
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: button.cpp,v 1.
7
2003/04/16
19:22:53
karibu Exp $
* $Id: button.cpp,v 1.
8
2003/04/16
21:39:00
karibu Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -137,7 +137,6 @@ bool ControlButton::MouseUp( int x, int y, int button )
// If hit in the button
if
(
Img
[
1
]
->
Hit
(
x
-
Left
,
y
-
Top
)
)
{
fprintf
(
stderr
,
" Button up ! (%i;%i)
\n
"
,
button
,
(
int
)
Selected
);
if
(
!
Enabled
)
return
true
;
...
...
@@ -161,18 +160,14 @@ bool ControlButton::MouseDown( int x, int y, int button )
{
if
(
Img
[
0
]
->
Hit
(
x
-
Left
,
y
-
Top
)
)
{
fprintf
(
stderr
,
" Button down ! (%i)
\n
"
,
button
);
if
(
!
Enabled
)
return
true
;
fprintf
(
stderr
,
" Button down ! (%i)
\n
"
,
button
);
if
(
button
==
1
)
{
State
=
0
;
Selected
=
true
;
fprintf
(
stderr
,
" Button down ! (%i)
\n
"
,
(
int
)
Selected
);
ParentWindow
->
Refresh
(
Left
,
Top
,
Width
,
Height
);
fprintf
(
stderr
,
" Button down ! (%i)
\n
"
,
(
int
)
Selected
);
return
true
;
}
}
...
...
modules/gui/skins/src/window.cpp
View file @
d71063c3
...
...
@@ -2,7 +2,7 @@
* window.cpp: Window class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: window.cpp,v 1.1
4
2003/04/16
19:22:53
karibu Exp $
* $Id: window.cpp,v 1.1
5
2003/04/16
21:39:00
karibu Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -271,7 +271,6 @@ void Window::RefreshImage( int x, int y, int w, int h )
{
unsigned
int
i
;
fprintf
(
stderr
,
"refr %d %d %d %d
\n
"
,
x
,
y
,
w
,
h
);
// Create Bitmap Buffer
Graphics
*
Buffer
=
(
Graphics
*
)
new
OSGraphics
(
w
,
h
,
this
);
...
...
@@ -297,8 +296,6 @@ void Window::Refresh( int x, int y, int w, int h )
if
(
Hidden
)
return
;
fprintf
(
stderr
,
"Refresh: %i %i %i %i
\n
"
,
x
,
y
,
w
,
h
);
// And copy buffer to window
RefreshFromImage
(
x
,
y
,
w
,
h
);
...
...
@@ -388,14 +385,8 @@ void Window::MouseUp( int x, int y, int button )
// Checking event in controls
for
(
i
=
ControlList
.
size
()
-
1
;
i
>=
0
;
i
--
)
{
fprintf
(
stderr
,
" -> Control
\n
"
);
if
(
ControlList
[
i
]
->
MouseUp
(
x
,
y
,
button
)
)
{
int
x
,
y
;
//ControlList[i]->GetSize( x, y );
fprintf
(
stderr
,
" x: %i
\n
y: %i
\n
"
,
ControlList
[
i
]
->
Left
,
ControlList
[
i
]
->
Top
);
return
;
}
}
...
...
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