sffview/sffview-0.4.diff

40 lines
1.2 KiB
Diff

Index: sffview-0.4/Makefile
===================================================================
--- sffview-0.4.orig/Makefile
+++ sffview-0.4/Makefile
@@ -19,10 +19,10 @@ PROGRAM = sffview
OBJECTS = $(PROGRAM).o common.o codes.o decoder.o sfffile.o sffapp.o sffdoc.o
#WXCONFIG_CPP = `wxgtk2-2.5-config --cflags`
-WXCONFIG_CPP = `wx-config --cflags`
+WXCONFIG_CPP = `wx-config --unicode=yes --cflags`
#WXCONFIG_LD = `wxgtk2-2.5-config --libs --static`
-WXCONFIG_LD = `wx-config --libs`
+WXCONFIG_LD = `wx-config --unicode=yes --libs`
# /usr/lib/libglib-2.0.a \
# /usr/lib/libgobject-2.0.a \
@@ -53,7 +53,7 @@ WXCONFIG_LD_STATIC = -L/usr/X11R6/lib \
.SUFFIXES: .o .cpp
.cpp.o :
- $(CC) -g -march=i686 -Os -c $(WXCONFIG_CPP) -o $@ $<
+ $(CC) -g $(RPM_OPT_FLAGS) -fno-strict-aliasing -c $(WXCONFIG_CPP) -o $@ $<
all: $(PROGRAM)
Index: sffview-0.4/sffview.cpp
===================================================================
--- sffview-0.4.orig/sffview.cpp
+++ sffview-0.4/sffview.cpp
@@ -205,7 +205,7 @@ SffCanvas::SffCanvas(wxView *v, wxFrame
wxScrolledWindow(frame, -1, pos, size, wxSUNKEN_BORDER)
{
view = v;
- SetBackgroundColour("WHITE");
+ SetBackgroundColour(_T("WHITE"));
}
// Define the repainting behaviour