Projects
Extra
wxWidgets
wxWidgets-2.8.12-gcc6.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File wxWidgets-2.8.12-gcc6.patch of Package wxWidgets
Index: b/src/gtk/bdiag.xbm =================================================================== --- a/src/gtk/bdiag.xbm +++ b/src/gtk/bdiag.xbm @@ -1,6 +1,6 @@ #define bdiag_width 16 #define bdiag_height 16 -static char bdiag_bits[] = { +static unsigned char bdiag_bits[] = { 0x80, 0x80, 0x40, 0x40, 0x20, 0x20, 0x10, 0x10, 0x08, 0x08, 0x04, 0x04, 0x02, 0x02, 0x01, 0x01, 0x80, 0x80, 0x40, 0x40, 0x20, 0x20, 0x10, 0x10, 0x08, 0x08, 0x04, 0x04, 0x02, 0x02, 0x01, 0x01}; Index: b/src/gtk/cdiag.xbm =================================================================== --- a/src/gtk/cdiag.xbm +++ b/src/gtk/cdiag.xbm @@ -1,6 +1,6 @@ #define cdiag_width 16 #define cdiag_height 16 -static char cdiag_bits[] = { +static unsigned char cdiag_bits[] = { 0x81, 0x81, 0x42, 0x42, 0x24, 0x24, 0x18, 0x18, 0x18, 0x18, 0x24, 0x24, 0x42, 0x42, 0x81, 0x81, 0x81, 0x81, 0x42, 0x42, 0x24, 0x24, 0x18, 0x18, 0x18, 0x18, 0x24, 0x24, 0x42, 0x42, 0x81, 0x81}; Index: b/src/gtk/cross.xbm =================================================================== --- a/src/gtk/cross.xbm +++ b/src/gtk/cross.xbm @@ -1,6 +1,6 @@ #define cross_width 15 #define cross_height 15 -static char cross_bits[] = { +static unsigned char cross_bits[] = { 0x84, 0x10, 0x84, 0x10, 0xff, 0x7f, 0x84, 0x10, 0x84, 0x10, 0x84, 0x10, 0x84, 0x10, 0xff, 0x7f, 0x84, 0x10, 0x84, 0x10, 0x84, 0x10, 0x84, 0x10, 0xff, 0x7f, 0x84, 0x10, 0x84, 0x10}; Index: b/src/gtk/dcclient.cpp =================================================================== --- a/src/gtk/dcclient.cpp +++ b/src/gtk/dcclient.cpp @@ -427,13 +427,23 @@ void wxWindowDC::SetUpDC() if (!hatch_bitmap) { +#define CREATE_FROM_XBM_DATA(name) \ + gdk_bitmap_create_from_data \ + ( \ + NULL, \ + reinterpret_cast<gchar *>(name ## _bits), \ + name ## _width, \ + name ## _height \ + ) + hatch_bitmap = hatches; - hatch_bitmap[0] = gdk_bitmap_create_from_data( (GdkWindow *) NULL, bdiag_bits, bdiag_width, bdiag_height ); - hatch_bitmap[1] = gdk_bitmap_create_from_data( (GdkWindow *) NULL, cdiag_bits, cdiag_width, cdiag_height ); - hatch_bitmap[2] = gdk_bitmap_create_from_data( (GdkWindow *) NULL, fdiag_bits, fdiag_width, fdiag_height ); - hatch_bitmap[3] = gdk_bitmap_create_from_data( (GdkWindow *) NULL, cross_bits, cross_width, cross_height ); - hatch_bitmap[4] = gdk_bitmap_create_from_data( (GdkWindow *) NULL, horiz_bits, horiz_width, horiz_height ); - hatch_bitmap[5] = gdk_bitmap_create_from_data( (GdkWindow *) NULL, verti_bits, verti_width, verti_height ); + hatch_bitmap[0] = CREATE_FROM_XBM_DATA(bdiag); + hatch_bitmap[1] = CREATE_FROM_XBM_DATA(cdiag); + hatch_bitmap[2] = CREATE_FROM_XBM_DATA(fdiag); + hatch_bitmap[3] = CREATE_FROM_XBM_DATA(cross); + hatch_bitmap[4] = CREATE_FROM_XBM_DATA(horiz); + hatch_bitmap[5] = CREATE_FROM_XBM_DATA(verti); +#undef CREATE_FROM_XBM_DATA } } Index: b/src/gtk/fdiag.xbm =================================================================== --- a/src/gtk/fdiag.xbm +++ b/src/gtk/fdiag.xbm @@ -1,6 +1,6 @@ #define fdiag_width 16 #define fdiag_height 16 -static char fdiag_bits[] = { +static unsigned char fdiag_bits[] = { 0x01, 0x01, 0x02, 0x02, 0x04, 0x04, 0x08, 0x08, 0x10, 0x10, 0x20, 0x20, 0x40, 0x40, 0x80, 0x80, 0x01, 0x01, 0x02, 0x02, 0x04, 0x04, 0x08, 0x08, 0x10, 0x10, 0x20, 0x20, 0x40, 0x40, 0x80, 0x80}; Index: b/src/gtk/horiz.xbm =================================================================== --- a/src/gtk/horiz.xbm +++ b/src/gtk/horiz.xbm @@ -1,6 +1,6 @@ #define horiz_width 15 #define horiz_height 15 -static char horiz_bits[] = { +static unsigned char horiz_bits[] = { 0x00, 0x00, 0x00, 0x00, 0xff, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x7f, 0x00, 0x00, 0x00, 0x00}; Index: b/src/gtk/verti.xbm =================================================================== --- a/src/gtk/verti.xbm +++ b/src/gtk/verti.xbm @@ -1,6 +1,6 @@ #define verti_width 15 #define verti_height 15 -static char verti_bits[] = { +static unsigned char verti_bits[] = { 0x84, 0x10, 0x84, 0x10, 0x84, 0x10, 0x84, 0x10, 0x84, 0x10, 0x84, 0x10, 0x84, 0x10, 0x84, 0x10, 0x84, 0x10, 0x84, 0x10, 0x84, 0x10, 0x84, 0x10, 0x84, 0x10, 0x84, 0x10, 0x84, 0x10};
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.