summaryrefslogtreecommitdiff
path: root/src/interface.c
diff options
context:
space:
mode:
authorSimon <simon@hardwired.org.uk>2010-12-07 21:40:17 (GMT)
committer Simon <simon@hardwired.org.uk>2010-12-07 21:40:17 (GMT)
commitac8701eb304c452f49bb806c2db08b0118d5d21c (patch)
tree987e59009c83b39b3d500c25c412d854d4fcd187 /src/interface.c
parent2bd851e14835cc48e71f8c291e6ca2fdccfd7319 (diff)
downloadpowder-ac8701eb304c452f49bb806c2db08b0118d5d21c.zip
powder-ac8701eb304c452f49bb806c2db08b0118d5d21c.tar.gz
Fix fan loading and remove delete button on favourite view
Diffstat (limited to 'src/interface.c')
-rw-r--r--src/interface.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/interface.c b/src/interface.c
index 5b9a133..53d41d8 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -2190,7 +2190,7 @@ int search_ui(pixel *vid_buf)
drawrect(vid_buf, gx-2, gy-2, XRES/GRID_S+3, YRES/GRID_S+3, 160, 160, 192, 255);
else
drawrect(vid_buf, gx-2, gy-2, XRES/GRID_S+3, YRES/GRID_S+3, 128, 128, 128, 255);
- if(own)
+ if(own && search_fav!=1)
{
if(dp == pos)
drawtext(vid_buf, gx+XRES/GRID_S-4, gy-6, "\x86", 255, 48, 32, 255);
@@ -2321,7 +2321,7 @@ int search_ui(pixel *vid_buf)
lasttime = TIMEOUT;
}
- if(b && !bq && dp!=-1)
+ if(b && !bq && dp!=-1 && search_fav!=0)
if(confirm_ui(vid_buf, "Do you want to delete?", search_names[dp], "Delete"))
{
execute_delete(vid_buf, search_ids[dp]);
@@ -2888,7 +2888,7 @@ int open_ui(pixel *vid_buf, char *save_id, char *save_date)
}
}
//Delete Button
- if(mx > 200 && mx < 200+50 && my > YRES+MENUSIZE-68 && my < YRES+MENUSIZE-50 && (authoritah || myown) && !queue_open) {
+ if(mx > 200 && mx < 200+50 && my > YRES+MENUSIZE-68 && my < YRES+MENUSIZE-50 && (authoritah || myown) && !queue_open && ) {
fillrect(vid_buf, 200, YRES+MENUSIZE-68, 50, 18, 255, 255, 255, 40);
if(b && !bq) {
//Button Clicked