[vlc-devel] commit: vlc_vout_display: Should use unsigned for height and width. ( Pierre d'Herbemont )
git version control
git at videolan.org
Thu Aug 20 23:22:36 CEST 2009
vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Thu Aug 20 23:14:11 2009 +0200| [b5ebc21881c718a75a5e36a7e123843de7ad0f1a] | committer: Pierre d'Herbemont
vlc_vout_display: Should use unsigned for height and width.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b5ebc21881c718a75a5e36a7e123843de7ad0f1a
---
include/vlc_vout_display.h | 10 +++++-----
src/video_output/display.c | 10 +++++-----
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/include/vlc_vout_display.h b/include/vlc_vout_display.h
index 090385d..5106716 100644
--- a/include/vlc_vout_display.h
+++ b/include/vlc_vout_display.h
@@ -72,13 +72,13 @@ typedef struct {
const char *title;
/* Display size */
- int width;
- int height;
+ unsigned width;
+ unsigned height;
/* Display SAR */
struct {
- int num;
- int den;
+ unsigned num;
+ unsigned den;
} sar;
} display;
@@ -378,7 +378,7 @@ static inline void vout_display_DeleteWindow(vout_display_t *vd,
*
* This asssumes that the picture is already cropped.
*/
-VLC_EXPORT( void, vout_display_GetDefaultDisplaySize, (int *width, int *height, const video_format_t *source, const vout_display_cfg_t *) );
+VLC_EXPORT( void, vout_display_GetDefaultDisplaySize, (unsigned *width, unsigned *height, const video_format_t *source, const vout_display_cfg_t *) );
/**
diff --git a/src/video_output/display.c b/src/video_output/display.c
index 9697f70..4774ba9 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -165,7 +165,7 @@ static void vout_display_Manage(vout_display_t *vd)
}
/* */
-void vout_display_GetDefaultDisplaySize(int *width, int *height,
+void vout_display_GetDefaultDisplaySize(unsigned *width, unsigned *height,
const video_format_t *source,
const vout_display_cfg_t *cfg)
{
@@ -204,10 +204,10 @@ void vout_display_PlacePicture(vout_display_place_t *place,
return;
/* */
- int width;
- int height;
- int display_width;
- int display_height;
+ unsigned width;
+ unsigned height;
+ unsigned display_width;
+ unsigned display_height;
if (cfg->is_display_filled) {
width = source->i_visible_width;
More information about the vlc-devel
mailing list