[ui] drop the option to remove the "unsupported hardware" watermark

* I've never seen that watermark in the first place, therefore can't test if the option is
  working, and, as opposed to the other options, users can deal with it post install anyway.
* Also ensure that we prompt for customization when selecting an install.wim.
This commit is contained in:
Pete Batard 2022-06-24 14:27:02 +01:00
parent 7391b342db
commit a25af06b3c
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
8 changed files with 86 additions and 69 deletions

View file

@ -115,6 +115,22 @@ static __inline int _log2(register int val)
return ret;
}
// Remap bits from a byte according to an 8x8 bit matrix
static __inline uint8_t remap8(uint8_t src, uint8_t* map, const BOOL reverse)
{
uint8_t i, m = 1, r = 0;
for (i = 0, m = 1; i < 8; i++, m <<= 1) {
if (reverse) {
if (src & map[i])
r |= m;
} else {
if (src & m)
r |= map[i];
}
}
return r;
}
/* Why oh why does Microsoft have to make everybody suffer with their braindead use of Unicode? */
#define _RT_ICON MAKEINTRESOURCEA(3)
#define _RT_DIALOG MAKEINTRESOURCEA(5)