mirror of
https://github.com/pbatard/rufus.git
synced 2025-06-03 16:19:01 -04:00
[ui] extend SelectionDialog() to support checkbox selection
This commit is contained in:
parent
a9a97b6f10
commit
9690742d91
7 changed files with 57 additions and 61 deletions
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Rufus: The Reliable USB Formatting Utility
|
||||
* Constants and defines missing from various toolchains
|
||||
* Copyright © 2016-2017 Pete Batard <pete@akeo.ie>
|
||||
* Copyright © 2016-2022 Pete Batard <pete@akeo.ie>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -105,6 +105,16 @@ static __inline void *_reallocf(void *ptr, size_t size) {
|
|||
return ret;
|
||||
}
|
||||
|
||||
static __inline int _log2(register int val)
|
||||
{
|
||||
int ret = 0;
|
||||
if (val < 0)
|
||||
return -2;
|
||||
while (val >>= 1)
|
||||
ret++;
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* 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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue