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:
+2
-2
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user