summaryrefslogtreecommitdiff
path: root/amiga/history_local.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-10-16 09:55:01 +0100
committerVincent Sanders <vince@kyllikki.org>2014-10-16 22:33:44 +0100
commit0b64df140c87c81d5046c0a97b5a655ca7af170b (patch)
tree3e0e1d5038e2b8d27f859d22c1c3f2205363d2c7 /amiga/history_local.c
parent3b4dea6241a09f745f7c4c54c302e6b4a0052680 (diff)
downloadnetsurf-0b64df140c87c81d5046c0a97b5a655ca7af170b.tar.gz
netsurf-0b64df140c87c81d5046c0a97b5a655ca7af170b.tar.bz2
Update amiga frontend for split operation table header changes
Diffstat (limited to 'amiga/history_local.c')
-rwxr-xr-xamiga/history_local.c37
1 files changed, 18 insertions, 19 deletions
diff --git a/amiga/history_local.c b/amiga/history_local.c
index 9884ea3ec..bd19ba657 100755
--- a/amiga/history_local.c
+++ b/amiga/history_local.c
@@ -25,23 +25,11 @@
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
-#include "desktop/browser_history.h"
-#include "desktop/browser_private.h"
-#include "desktop/plotters.h"
-#include "amiga/os3support.h"
-#include "amiga/object.h"
-#include "amiga/gui.h"
-#include "utils/log.h"
-#include "utils/utils.h"
#include <proto/intuition.h>
-#include "amiga/history_local.h"
#include <proto/exec.h>
#include <proto/graphics.h>
#include <intuition/icclass.h>
#include <proto/utility.h>
-#include "utils/messages.h"
-#include "graphics/rpattr.h"
-
#include <proto/window.h>
#include <proto/space.h>
#include <proto/layout.h>
@@ -51,11 +39,22 @@
#include <reaction/reaction.h>
#include <reaction/reaction_macros.h>
+#include "utils/log.h"
+#include "utils/utils.h"
+#include "utils/messages.h"
+#include "desktop/browser_history.h"
+#include "desktop/browser_private.h"
+#include "desktop/plotters.h"
+#include "desktop/gui_window.h"
+#include "graphics/rpattr.h"
+
+#include "amiga/os3support.h"
+#include "amiga/object.h"
+#include "amiga/gui.h"
+#include "amiga/history_local.h"
+
+
static struct browser_window *history_bw;
-/* Last position of mouse in window. */
-static int mouse_x = 0;
-/* Last position of mouse in window. */
-static int mouse_y = 0;
static struct history_window *hwindow;
void ami_history_update_extent(struct history_window *hw);
@@ -189,7 +188,7 @@ void ami_history_redraw(struct history_window *hw)
* \return true if the event was handled, false to pass it on
*/
-bool ami_history_click(struct history_window *hw,uint16 code)
+static bool ami_history_click(struct history_window *hw,uint16 code)
{
int x, y;
struct IBox *bbox;
@@ -235,7 +234,7 @@ void ami_history_close(struct history_window *hw)
BOOL ami_history_event(struct history_window *hw)
{
/* return TRUE if window destroyed */
- ULONG class,result,relevent = 0;
+ ULONG result = 0;
uint16 code;
const char *url;
struct IBox *bbox;
@@ -316,7 +315,7 @@ void ami_history_update_extent(struct history_window *hw)
void ami_history_scroller_hook(struct Hook *hook,Object *object,struct IntuiMessage *msg)
{
- ULONG gid,x,y;
+ ULONG gid;
struct history_window *hw = hook->h_Data;
if (msg->Class == IDCMP_IDCMPUPDATE)