summaryrefslogtreecommitdiff
path: root/src/gui/search/SearchController.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-06-09 21:13:57 (GMT)
committer jacob1 <jfu614@gmail.com>2013-06-09 21:13:57 (GMT)
commit52ec8f438b6ce3373c9258cbde402b4caef92b1e (patch)
treef72ab1060435d30ed7781f463dbfb05bbcb50d91 /src/gui/search/SearchController.cpp
parenta6ee8e2af156e42fa3b5311afa4d3144d1566ca0 (diff)
downloadpowder-52ec8f438b6ce3373c9258cbde402b4caef92b1e.zip
powder-52ec8f438b6ce3373c9258cbde402b4caef92b1e.tar.gz
add the single saveID copytext button into the save preview too
Diffstat (limited to 'src/gui/search/SearchController.cpp')
-rw-r--r--src/gui/search/SearchController.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/search/SearchController.cpp b/src/gui/search/SearchController.cpp
index b881962..b4b6569 100644
--- a/src/gui/search/SearchController.cpp
+++ b/src/gui/search/SearchController.cpp
@@ -184,6 +184,8 @@ void SearchController::OpenSave(int saveID)
{
if(activePreview)
delete activePreview;
+ Graphics * g = ui::Engine::Ref().g;
+ g->fillrect(XRES/3, YRES+MENUSIZE-20, XRES/3, 20, 0, 0, 0, 150); //dim the "Page X of Y" a little to make the CopyTextButton more noticeable
activePreview = new PreviewController(saveID, new OpenCallback(this));
ui::Engine::Ref().ShowWindow(activePreview->GetView());
}
@@ -192,6 +194,8 @@ void SearchController::OpenSave(int saveID, int saveDate)
{
if(activePreview)
delete activePreview;
+ Graphics * g = ui::Engine::Ref().g;
+ g->fillrect(XRES/3, YRES+MENUSIZE-20, XRES/3, 20, 0, 0, 0, 150); //dim the "Page X of Y" a little to make the CopyTextButton more noticeable
activePreview = new PreviewController(saveID, saveDate, new OpenCallback(this));
ui::Engine::Ref().ShowWindow(activePreview->GetView());
}