Amiga: replace WINVERS_AMI* strcmp with WINDOWPORT() id compare

The macros were strcmp("amiv", windowprocs.name)==0 at every reference
-- 72 sites including inner loops.  Use the 5.0 core's WINDOWPORT(wn)
which compares wp_id.
This commit is contained in:
Ingo Paschke
2026-05-11 20:51:06 +02:00
parent 688f9344cd
commit 5d86dfccb5
+2 -2
View File
@@ -55,8 +55,8 @@ CLIPPING must be defined for the AMIGA version
#include <utility/tagitem.h>
#define WINVERS_AMII (strcmp("amii", windowprocs.name) == 0)
#define WINVERS_AMIV (strcmp("amiv", windowprocs.name) == 0)
#define WINVERS_AMII WINDOWPORT(amii)
#define WINVERS_AMIV WINDOWPORT(amiv)
/* cw->data[x] contains 2 characters worth of special information. These
* characters are stored at the offsets as described here.