git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16738
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
if ( pixel_depth == 8 )
{
{
if ( pixel_depth == 8 )
{
- for ( int i = 0 ; i < info_ptr->width ; ++i )
+ for ( size_t i = 0 ; i < info_ptr->width ; ++i )
{
png_color_struct* color ;
RGBColor col ;
{
png_color_struct* color ;
RGBColor col ;
- for ( int i = 0 ; i < info_ptr->width ; ++i )
+ for ( size_t i = 0 ; i < info_ptr->width ; ++i )
{
png_color_struct* color ;
RGBColor col ;
{
png_color_struct* color ;
RGBColor col ;
- for ( int i = 0 ; i < info_ptr->width ; ++i )
+ for ( size_t i = 0 ; i < info_ptr->width ; ++i )
{
png_color_struct* color ;
RGBColor col ;
{
png_color_struct* color ;
RGBColor col ;
+#ifndef WX_PRECOMP
+ #include "wx/intl.h"
+ #include "wx/log.h"
+#endif // WX_PRECOMP
+
#include "wx/scrolbar.h"
#include "wx/mac/uma.h"
#include "wx/scrolbar.h"
#include "wx/mac/uma.h"
nScrollInc = 0 ;
scrollEvent = wxEVT_SCROLL_THUMBTRACK;
break ;
nScrollInc = 0 ;
scrollEvent = wxEVT_SCROLL_THUMBTRACK;
break ;
+ default :
+ wxLogError(_("illegal scrollbar selector %d"), controlpart);
+ break ;
}
int new_pos = position + nScrollInc;
}
int new_pos = position + nScrollInc;
- if (new_pos < 0)
- new_pos = 0;
+ if (new_pos < minPos)
+ new_pos = minPos;
if (new_pos > maxPos)
new_pos = maxPos;
if ( nScrollInc )
if (new_pos > maxPos)
new_pos = maxPos;
if ( nScrollInc )
{
if ( pixel_depth == 8 )
{
{
if ( pixel_depth == 8 )
{
- for ( int i = 0 ; i < info_ptr->width ; ++i )
+ for ( size_t i = 0 ; i < info_ptr->width ; ++i )
{
png_color_struct* color ;
RGBColor col ;
{
png_color_struct* color ;
RGBColor col ;
- for ( int i = 0 ; i < info_ptr->width ; ++i )
+ for ( size_t i = 0 ; i < info_ptr->width ; ++i )
{
png_color_struct* color ;
RGBColor col ;
{
png_color_struct* color ;
RGBColor col ;
- for ( int i = 0 ; i < info_ptr->width ; ++i )
+ for ( size_t i = 0 ; i < info_ptr->width ; ++i )
{
png_color_struct* color ;
RGBColor col ;
{
png_color_struct* color ;
RGBColor col ;
+#ifndef WX_PRECOMP
+ #include "wx/intl.h"
+ #include "wx/log.h"
+#endif // WX_PRECOMP
+
#include "wx/scrolbar.h"
#include "wx/mac/uma.h"
#include "wx/scrolbar.h"
#include "wx/mac/uma.h"
nScrollInc = 0 ;
scrollEvent = wxEVT_SCROLL_THUMBTRACK;
break ;
nScrollInc = 0 ;
scrollEvent = wxEVT_SCROLL_THUMBTRACK;
break ;
+ default :
+ wxLogError(_("illegal scrollbar selector %d"), controlpart);
+ break ;
}
int new_pos = position + nScrollInc;
}
int new_pos = position + nScrollInc;
- if (new_pos < 0)
- new_pos = 0;
+ if (new_pos < minPos)
+ new_pos = minPos;
if (new_pos > maxPos)
new_pos = maxPos;
if ( nScrollInc )
if (new_pos > maxPos)
new_pos = maxPos;
if ( nScrollInc )