mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-28 17:23:09 +03:00
Remove pointless string copy
This commit is contained in:
parent
2d41d6c933
commit
3303c005ee
@ -7,7 +7,7 @@ CFLAGS += -std=c99 -Dnsamiga
|
|||||||
ifneq ($(SUBTARGET),os3)
|
ifneq ($(SUBTARGET),os3)
|
||||||
CFLAGS += -O2 -finline-functions -U__STRICT_ANSI__ -D__USE_INLINE__ -D__USE_BASETYPE__
|
CFLAGS += -O2 -finline-functions -U__STRICT_ANSI__ -D__USE_INLINE__ -D__USE_BASETYPE__
|
||||||
else
|
else
|
||||||
CFLAGS += -msoft-float -m68020-60 -O2 -DPATH_MAX=1024 -D__m68k__
|
CFLAGS += -O2 -DPATH_MAX=1024 -D__m68k__ -m68020
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(eval $(call feature_enabled,AMIGA_ICON,-DWITH_AMIGA_ICON,,Amiga icon))
|
$(eval $(call feature_enabled,AMIGA_ICON,-DWITH_AMIGA_ICON,,Amiga icon))
|
||||||
|
@ -5329,7 +5329,6 @@ Object *ami_gui_splash_open(void)
|
|||||||
struct Window *win;
|
struct Window *win;
|
||||||
struct Screen *wbscreen = LockPubScreen("Workbench");
|
struct Screen *wbscreen = LockPubScreen("Workbench");
|
||||||
uint32 top = 0, left = 0;
|
uint32 top = 0, left = 0;
|
||||||
STRPTR ver_string;
|
|
||||||
struct TextAttr tattr;
|
struct TextAttr tattr;
|
||||||
struct TextFont *tfont;
|
struct TextFont *tfont;
|
||||||
|
|
||||||
@ -5398,12 +5397,9 @@ Object *ami_gui_splash_open(void)
|
|||||||
if((tfont = ami_font_open_disk_font(&tattr)))
|
if((tfont = ami_font_open_disk_font(&tattr)))
|
||||||
SetFont(win->RPort, tfont);
|
SetFont(win->RPort, tfont);
|
||||||
|
|
||||||
ver_string = ASPrintf("%s", netsurf_version);
|
|
||||||
|
|
||||||
Move(win->RPort, left + 185, top + 220);
|
Move(win->RPort, left + 185, top + 220);
|
||||||
Text(win->RPort, ver_string, strlen(ver_string));
|
Text(win->RPort, netsurf_version, strlen(netsurf_version));
|
||||||
|
|
||||||
if(ver_string) FreeVec(ver_string);
|
|
||||||
if(tfont) ami_font_close_disk_font(tfont);
|
if(tfont) ami_font_close_disk_font(tfont);
|
||||||
|
|
||||||
UnlockPubScreen(NULL, wbscreen);
|
UnlockPubScreen(NULL, wbscreen);
|
||||||
|
Loading…
Reference in New Issue
Block a user