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
17025142
Commit
17025142
authored
Nov 05, 2005
by
Cyril Deguet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* all: renamed PngBitmap into FileBitmap, as any image format
can be loaded
parent
d607e4d1
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
22 deletions
+22
-22
modules/gui/skins2/Modules.am
modules/gui/skins2/Modules.am
+2
-2
modules/gui/skins2/parser/builder.cpp
modules/gui/skins2/parser/builder.cpp
+4
-4
modules/gui/skins2/src/file_bitmap.cpp
modules/gui/skins2/src/file_bitmap.cpp
+7
-7
modules/gui/skins2/src/file_bitmap.hpp
modules/gui/skins2/src/file_bitmap.hpp
+9
-9
No files found.
modules/gui/skins2/Modules.am
View file @
17025142
...
@@ -95,6 +95,8 @@ SOURCES_skins2 = \
...
@@ -95,6 +95,8 @@ SOURCES_skins2 = \
src/bitmap_font.hpp \
src/bitmap_font.hpp \
src/dialogs.cpp \
src/dialogs.cpp \
src/dialogs.hpp \
src/dialogs.hpp \
src/file_bitmap.cpp \
src/file_bitmap.hpp \
src/ft2_bitmap.cpp \
src/ft2_bitmap.cpp \
src/ft2_bitmap.hpp \
src/ft2_bitmap.hpp \
src/ft2_font.cpp \
src/ft2_font.cpp \
...
@@ -115,8 +117,6 @@ SOURCES_skins2 = \
...
@@ -115,8 +117,6 @@ SOURCES_skins2 = \
src/os_timer.hpp \
src/os_timer.hpp \
src/os_window.hpp \
src/os_window.hpp \
src/os_tooltip.hpp \
src/os_tooltip.hpp \
src/png_bitmap.cpp \
src/png_bitmap.hpp \
src/scaled_bitmap.cpp \
src/scaled_bitmap.cpp \
src/scaled_bitmap.hpp \
src/scaled_bitmap.hpp \
src/skin_main.cpp \
src/skin_main.cpp \
...
...
modules/gui/skins2/parser/builder.cpp
View file @
17025142
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
#include "builder.hpp"
#include "builder.hpp"
#include "builder_data.hpp"
#include "builder_data.hpp"
#include "interpreter.hpp"
#include "interpreter.hpp"
#include "../src/
png
_bitmap.hpp"
#include "../src/
file
_bitmap.hpp"
#include "../src/os_factory.hpp"
#include "../src/os_factory.hpp"
#include "../src/generic_bitmap.hpp"
#include "../src/generic_bitmap.hpp"
#include "../src/top_window.hpp"
#include "../src/top_window.hpp"
...
@@ -143,7 +143,7 @@ void Builder::addTheme( const BuilderData::Theme &rData )
...
@@ -143,7 +143,7 @@ void Builder::addTheme( const BuilderData::Theme &rData )
void
Builder
::
addBitmap
(
const
BuilderData
::
Bitmap
&
rData
)
void
Builder
::
addBitmap
(
const
BuilderData
::
Bitmap
&
rData
)
{
{
GenericBitmap
*
pBmp
=
GenericBitmap
*
pBmp
=
new
Png
Bitmap
(
getIntf
(),
m_pImageHandler
,
new
File
Bitmap
(
getIntf
(),
m_pImageHandler
,
rData
.
m_fileName
,
rData
.
m_alphaColor
);
rData
.
m_fileName
,
rData
.
m_alphaColor
);
m_pTheme
->
m_bitmaps
[
rData
.
m_id
]
=
GenericBitmapPtr
(
pBmp
);
m_pTheme
->
m_bitmaps
[
rData
.
m_id
]
=
GenericBitmapPtr
(
pBmp
);
}
}
...
@@ -152,7 +152,7 @@ void Builder::addBitmap( const BuilderData::Bitmap &rData )
...
@@ -152,7 +152,7 @@ void Builder::addBitmap( const BuilderData::Bitmap &rData )
void
Builder
::
addBitmapFont
(
const
BuilderData
::
BitmapFont
&
rData
)
void
Builder
::
addBitmapFont
(
const
BuilderData
::
BitmapFont
&
rData
)
{
{
GenericBitmap
*
pBmp
=
GenericBitmap
*
pBmp
=
new
Png
Bitmap
(
getIntf
(),
m_pImageHandler
,
rData
.
m_file
,
0
);
new
File
Bitmap
(
getIntf
(),
m_pImageHandler
,
rData
.
m_file
,
0
);
m_pTheme
->
m_bitmaps
[
rData
.
m_id
]
=
GenericBitmapPtr
(
pBmp
);
m_pTheme
->
m_bitmaps
[
rData
.
m_id
]
=
GenericBitmapPtr
(
pBmp
);
GenericFont
*
pFont
=
new
BitmapFont
(
getIntf
(),
*
pBmp
,
rData
.
m_type
);
GenericFont
*
pFont
=
new
BitmapFont
(
getIntf
(),
*
pBmp
,
rData
.
m_type
);
...
...
modules/gui/skins2/src/
png
_bitmap.cpp
→
modules/gui/skins2/src/
file
_bitmap.cpp
View file @
17025142
/*****************************************************************************
/*****************************************************************************
*
png
_bitmap.cpp
*
file
_bitmap.cpp
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 the VideoLAN team
* Copyright (C) 2003 the VideoLAN team
* $Id$
* $Id$
...
@@ -24,9 +24,9 @@
...
@@ -24,9 +24,9 @@
#include <vlc/vlc.h>
#include <vlc/vlc.h>
#include "vlc_image.h"
#include "vlc_image.h"
#include "
png
_bitmap.hpp"
#include "
file
_bitmap.hpp"
PngBitmap
::
Png
Bitmap
(
intf_thread_t
*
pIntf
,
image_handler_t
*
pImageHandler
,
FileBitmap
::
File
Bitmap
(
intf_thread_t
*
pIntf
,
image_handler_t
*
pImageHandler
,
string
fileName
,
uint32_t
aColor
)
:
string
fileName
,
uint32_t
aColor
)
:
GenericBitmap
(
pIntf
),
m_width
(
0
),
m_height
(
0
)
GenericBitmap
(
pIntf
),
m_width
(
0
),
m_height
(
0
)
{
{
...
@@ -76,17 +76,17 @@ PngBitmap::PngBitmap( intf_thread_t *pIntf, image_handler_t *pImageHandler,
...
@@ -76,17 +76,17 @@ PngBitmap::PngBitmap( intf_thread_t *pIntf, image_handler_t *pImageHandler,
}
}
PngBitmap
::~
Png
Bitmap
()
FileBitmap
::~
File
Bitmap
()
{
{
if
(
m_pData
)
delete
[]
m_pData
;
if
(
m_pData
)
delete
[]
m_pData
;
}
}
uint8_t
*
Png
Bitmap
::
getData
()
const
uint8_t
*
File
Bitmap
::
getData
()
const
{
{
if
(
m_pData
==
NULL
)
if
(
m_pData
==
NULL
)
{
{
msg_Warn
(
getIntf
(),
"
Png
Bitmap::getData() returns NULL"
);
msg_Warn
(
getIntf
(),
"
File
Bitmap::getData() returns NULL"
);
}
}
return
m_pData
;
return
m_pData
;
}
}
modules/gui/skins2/src/
png
_bitmap.hpp
→
modules/gui/skins2/src/
file
_bitmap.hpp
View file @
17025142
/*****************************************************************************
/*****************************************************************************
*
png
_bitmap.hpp
*
file
_bitmap.hpp
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 the VideoLAN team
* Copyright (C) 2003 the VideoLAN team
* $Id$
* $Id$
...
@@ -22,23 +22,23 @@
...
@@ -22,23 +22,23 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
*****************************************************************************/
#ifndef
PNG
_BITMAP_HPP
#ifndef
FILE
_BITMAP_HPP
#define
PNG
_BITMAP_HPP
#define
FILE
_BITMAP_HPP
#include "generic_bitmap.hpp"
#include "generic_bitmap.hpp"
#include <string>
#include <string>
/// Class for
PNG
bitmaps
/// Class for
file
bitmaps
class
Png
Bitmap
:
public
GenericBitmap
class
File
Bitmap
:
public
GenericBitmap
{
{
public:
public:
/// Load a
PNG
bitmap from a file. aColor is the transparency
/// Load a bitmap from a file. aColor is the transparency
/// color, in the format 0xRRGGBB
/// color, in the format 0xRRGGBB
Png
Bitmap
(
intf_thread_t
*
pIntf
,
image_handler_t
*
pImageHandler
,
File
Bitmap
(
intf_thread_t
*
pIntf
,
image_handler_t
*
pImageHandler
,
string
fileName
,
uint32_t
aColor
);
string
fileName
,
uint32_t
aColor
);
virtual
~
Png
Bitmap
();
virtual
~
File
Bitmap
();
/// Get the width of the bitmap
/// Get the width of the bitmap
virtual
int
getWidth
()
const
{
return
m_width
;
}
virtual
int
getWidth
()
const
{
return
m_width
;
}
...
...
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