OSDN Git Service

Changed Cocoa terminal hook prototypes to match those in z-term.h.
authorEric Branlund <ebranlund@fastmail.com>
Mon, 24 Feb 2020 22:45:48 +0000 (14:45 -0800)
committerEric Branlund <ebranlund@fastmail.com>
Mon, 24 Feb 2020 22:45:48 +0000 (14:45 -0800)
src/main-cocoa.m

index 444e96a..abd1ccd 100644 (file)
@@ -2952,7 +2952,7 @@ static errr Term_xtra_cocoa(int n, int v)
     return result;
 }
 
-static errr Term_curs_cocoa(int x, int y)
+static errr Term_curs_cocoa(TERM_LEN x, TERM_LEN y)
 {
     AngbandContext *angbandContext = Term->data;
 
@@ -2973,7 +2973,7 @@ static errr Term_curs_cocoa(int x, int y)
  * the cursor points at a kanji character, irregardless of whether operating
  * in big tile mode.
  */
-static errr Term_bigcurs_cocoa(int x, int y)
+static errr Term_bigcurs_cocoa(TERM_LEN x, TERM_LEN y)
 {
     AngbandContext *angbandContext = Term->data;
 
@@ -2994,7 +2994,7 @@ static errr Term_bigcurs_cocoa(int x, int y)
  *
  * Erase "n" characters starting at (x,y)
  */
-static errr Term_wipe_cocoa(int x, int y, int n)
+static errr Term_wipe_cocoa(TERM_LEN x, TERM_LEN y, int n)
 {
     AngbandContext *angbandContext = Term->data;
     struct PendingCellChange *pc;
@@ -3035,9 +3035,9 @@ static errr Term_wipe_cocoa(int x, int y, int n)
     return (0);
 }
 
-static errr Term_pict_cocoa(int x, int y, int n, TERM_COLOR *ap,
-                            const char *cp, const TERM_COLOR *tap,
-                            const char *tcp)
+static errr Term_pict_cocoa(TERM_LEN x, TERM_LEN y, int n,
+                           TERM_COLOR *ap, concptr cp,
+                           const TERM_COLOR *tap, concptr tcp)
 {
     
     /* Paranoia: Bail if we don't have a current graphics mode */
@@ -3108,7 +3108,8 @@ static errr Term_pict_cocoa(int x, int y, int n, TERM_COLOR *ap,
  *
  * Draw several ("n") chars, with an attr, at a given location.
  */
-static errr Term_text_cocoa(int x, int y, int n, byte_hack a, concptr cp)
+static errr Term_text_cocoa(
+    TERM_LEN x, TERM_LEN y, int n, TERM_COLOR a, concptr cp)
 {
     AngbandContext* angbandContext = Term->data;
     struct PendingCellChange *pc;