return result;
}
-static errr Term_curs_cocoa(TERM_LEN x, TERM_LEN y)
+static errr Term_curs_cocoa(int x, int y)
{
AngbandContext *angbandContext = (__bridge AngbandContext*) (Term->data);
* the cursor points at a kanji character, irregardless of whether operating
* in big tile mode.
*/
-static errr Term_bigcurs_cocoa(TERM_LEN x, TERM_LEN y)
+static errr Term_bigcurs_cocoa(int x, int y)
{
AngbandContext *angbandContext = (__bridge AngbandContext*) (Term->data);
*
* Erase "n" characters starting at (x,y)
*/
-static errr Term_wipe_cocoa(TERM_LEN x, TERM_LEN y, int n)
+static errr Term_wipe_cocoa(int x, int y, int n)
{
AngbandContext *angbandContext = (__bridge AngbandContext*) (Term->data);
return 0;
}
-static errr Term_pict_cocoa(TERM_LEN x, TERM_LEN y, int n,
- TERM_COLOR *ap, concptr cp,
- const TERM_COLOR *tap, concptr tcp)
+static errr Term_pict_cocoa(int x, int y, int n,
+ const byte *ap, const char * cp,
+ const byte *tap, const char *tcp)
{
/* Paranoia: Bail if graphics aren't enabled */
if (! graphics_are_enabled()) return -1;
}
for (int i = x; i < x + n * step; i += step) {
- TERM_COLOR a = *ap++;
+ byte a = *ap++;
char c = *cp++;
- TERM_COLOR ta = *tap++;
+ byte ta = *tap++;
char tc = *tcp++;
if (use_graphics && (a & 0x80) && (c & 0x80)) {
* Draw several ("n") chars, with an attr, at a given location.
*/
static errr Term_text_cocoa(
- TERM_LEN x, TERM_LEN y, int n, TERM_COLOR a, concptr cp)
+ int x, int y, int n, byte a, cptr cp)
{
AngbandContext* angbandContext = (__bridge AngbandContext*) (Term->data);