summaryrefslogtreecommitdiff
path: root/src/interface
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-07-29 00:33:28 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-07-29 00:33:28 (GMT)
commit6cc4648929a8f4fc45531e4637f19b6b2e45f0fd (patch)
tree854de1d4daad23ecdef968dd34565b572c856511 /src/interface
parentdf3b1e2a6210b45df8bcace1db81a0a0881efbab (diff)
downloadpowder-6cc4648929a8f4fc45531e4637f19b6b2e45f0fd.zip
powder-6cc4648929a8f4fc45531e4637f19b6b2e45f0fd.tar.gz
Filebrowser search, cleaner filenames
Diffstat (limited to 'src/interface')
-rw-r--r--src/interface/SaveButton.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interface/SaveButton.cpp b/src/interface/SaveButton.cpp
index e3f7422..b312d3a 100644
--- a/src/interface/SaveButton.cpp
+++ b/src/interface/SaveButton.cpp
@@ -66,7 +66,7 @@ SaveButton::SaveButton(Point position, Point size, SaveFile * file):
{
if(file)
{
- name = file->GetName();
+ name = file->GetDisplayName();
if(Graphics::textwidth((char *)name.c_str()) > Size.X)
{
int position = Graphics::textwidthx((char *)name.c_str(), Size.X - 22);