Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
9447bce6
Commit
9447bce6
authored
Apr 14, 2003
by
Cyril Deguet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* get the size of a bitmap
parent
df909d84
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
10 deletions
+14
-10
modules/gui/skins/gtk2/gtk2_bitmap.cpp
modules/gui/skins/gtk2/gtk2_bitmap.cpp
+6
-2
modules/gui/skins/gtk2/gtk2_theme.cpp
modules/gui/skins/gtk2/gtk2_theme.cpp
+5
-5
modules/gui/skins/gtk2/gtk2_window.cpp
modules/gui/skins/gtk2/gtk2_window.cpp
+3
-3
No files found.
modules/gui/skins/gtk2/gtk2_bitmap.cpp
View file @
9447bce6
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* gtk2_bitmap.cpp: GTK2 implementation of the Bitmap class
* gtk2_bitmap.cpp: GTK2 implementation of the Bitmap class
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: gtk2_bitmap.cpp,v 1.
4 2003/04/13 22:55:15
asmax Exp $
* $Id: gtk2_bitmap.cpp,v 1.
5 2003/04/14 17:03:41
asmax Exp $
*
*
* Authors: Cyril Deguet <asmax@videolan.org>
* Authors: Cyril Deguet <asmax@videolan.org>
*
*
...
@@ -109,6 +109,9 @@ GTK2Bitmap::GTK2Bitmap( intf_thread_t *p_intf, string FileName, int AColor )
...
@@ -109,6 +109,9 @@ GTK2Bitmap::GTK2Bitmap( intf_thread_t *p_intf, string FileName, int AColor )
// Bmp = gdk_pixbuf_new( GDK_COLORSPACE_RGB, TRUE, 8, 1, 1);
// Bmp = gdk_pixbuf_new( GDK_COLORSPACE_RGB, TRUE, 8, 1, 1);
Bmp
=
NULL
;
Bmp
=
NULL
;
}
}
Width
=
gdk_pixbuf_get_width
(
Bmp
);
Height
=
gdk_pixbuf_get_height
(
Bmp
);
}
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
GTK2Bitmap
::
GTK2Bitmap
(
intf_thread_t
*
p_intf
,
Graphics
*
from
,
int
x
,
int
y
,
GTK2Bitmap
::
GTK2Bitmap
(
intf_thread_t
*
p_intf
,
Graphics
*
from
,
int
x
,
int
y
,
...
@@ -165,7 +168,8 @@ void GTK2Bitmap::DrawBitmap( int x, int y, int w, int h, int xRef, int yRef,
...
@@ -165,7 +168,8 @@ void GTK2Bitmap::DrawBitmap( int x, int y, int w, int h, int xRef, int yRef,
GdkGC
*
gc
=
gdk_gc_new
(
destImg
);
GdkGC
*
gc
=
gdk_gc_new
(
destImg
);
/*gdk_pixbuf_render_to_drawable( Bmp, destImg, gc, 0, 0, x, y, w, h,
/*gdk_pixbuf_render_to_drawable( Bmp, destImg, gc, 0, 0, x, y, w, h,
GDK_RGB_DITHER_NONE, 0, 0);*/
GDK_RGB_DITHER_NONE, 0, 0);*/
gdk_pixbuf_render_to_drawable
(
Bmp
,
destImg
,
gc
,
0
,
0
,
x
,
y
,
50
,
50
,
fprintf
(
stderr
,
"draw %d %d %d %d
\n
"
,
x
,
y
,
w
,
h
);
gdk_pixbuf_render_to_drawable
(
Bmp
,
destImg
,
gc
,
0
,
0
,
x
,
y
,
w
,
h
,
GDK_RGB_DITHER_NONE
,
0
,
0
);
GDK_RGB_DITHER_NONE
,
0
,
0
);
}
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
...
...
modules/gui/skins/gtk2/gtk2_theme.cpp
View file @
9447bce6
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* gtk2_theme.cpp: GTK2 implementation of the Theme class
* gtk2_theme.cpp: GTK2 implementation of the Theme class
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: gtk2_theme.cpp,v 1.
5 2003/04/13 22:55:15
asmax Exp $
* $Id: gtk2_theme.cpp,v 1.
6 2003/04/14 17:03:42
asmax Exp $
*
*
* Authors: Cyril Deguet <asmax@videolan.org>
* Authors: Cyril Deguet <asmax@videolan.org>
*
*
...
@@ -320,15 +320,15 @@ void GTK2Theme::AddWindow( string name, int x, int y, bool visible,
...
@@ -320,15 +320,15 @@ void GTK2Theme::AddWindow( string name, int x, int y, bool visible,
GdkWindowAttr
attr
;
GdkWindowAttr
attr
;
attr
.
event_mask
=
GDK_ALL_EVENTS_MASK
;
attr
.
event_mask
=
GDK_ALL_EVENTS_MASK
;
attr
.
width
=
40
0
;
attr
.
width
=
0
;
attr
.
height
=
15
0
;
attr
.
height
=
0
;
attr
.
window_type
=
GDK_WINDOW_CHILD
;
attr
.
window_type
=
GDK_WINDOW_CHILD
;
attr
.
wclass
=
GDK_INPUT_OUTPUT
;
attr
.
wclass
=
GDK_INPUT_OUTPUT
;
gint
mask
=
0
;
gint
mask
=
0
;
// Create the
parent
window
// Create the window
GdkWindow
*
gwnd
=
gdk_window_new
(
ParentWindow
,
&
attr
,
mask
);
GdkWindow
*
gwnd
=
gdk_window_new
(
ParentWindow
,
&
attr
,
mask
);
if
(
!
gwnd
)
if
(
!
gwnd
)
{
{
msg_Err
(
p_intf
,
"CreateWindow failed"
);
msg_Err
(
p_intf
,
"CreateWindow failed"
);
...
...
modules/gui/skins/gtk2/gtk2_window.cpp
View file @
9447bce6
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* gtk2_window.cpp: GTK2 implementation of the Window class
* gtk2_window.cpp: GTK2 implementation of the Window class
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: gtk2_window.cpp,v 1.
5 2003/04/13 22:55:15
asmax Exp $
* $Id: gtk2_window.cpp,v 1.
6 2003/04/14 17:03:42
asmax Exp $
*
*
* Authors: Cyril Deguet <asmax@videolan.org>
* Authors: Cyril Deguet <asmax@videolan.org>
*
*
...
@@ -271,10 +271,10 @@ void GTK2Window::Move( int left, int top )
...
@@ -271,10 +271,10 @@ void GTK2Window::Move( int left, int top )
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
void
GTK2Window
::
Size
(
int
width
,
int
height
)
void
GTK2Window
::
Size
(
int
width
,
int
height
)
{
{
fprintf
(
stderr
,
"size %d %d
\n
"
,
width
,
height
);
Width
=
width
;
Width
=
width
;
Height
=
height
;
Height
=
height
;
/* SetWindowPos( hWnd, HWND_TOP, Left, Top, Width, Height,
gdk_window_resize
(
gWnd
,
width
,
height
);
SWP_NOMOVE|SWP_NOREDRAW|SWP_NOZORDER );*/
}
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
void
GTK2Window
::
ChangeToolTipText
(
string
text
)
void
GTK2Window
::
ChangeToolTipText
(
string
text
)
...
...
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