Updated SDL and fixed Emscripten build
This commit is contained in:
parent
919e41db22
commit
bd4d662dd9
36 changed files with 1156 additions and 125 deletions
|
|
@ -14,7 +14,7 @@ struct ColorPickerItemsOptions {
|
|||
|
||||
template <typename T> void color_picker_items(GUIManager& gui, const char* id, T* val, const ColorPickerItemsOptions& options = {}) {
|
||||
gui.new_id(id, [&] {
|
||||
auto fullOnEdit = [&gui, oE = options.onEdit, val]() {
|
||||
auto fullOnEdit = [&gui, oE = options.onEdit]() {
|
||||
if(oE) oE();
|
||||
gui.set_to_layout();
|
||||
};
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ template <typename T> void input_scalar(GUIManager& gui, const char* id, T* val,
|
|||
return minVal;
|
||||
return std::clamp(toRet, minVal, maxVal);
|
||||
};
|
||||
d.toStr = [decimalPrecision = options.decimalPrecision, minVal, maxVal](const T& a) {
|
||||
d.toStr = [decimalPrecision = options.decimalPrecision](const T& a) {
|
||||
std::stringstream ss;
|
||||
if(std::is_floating_point<T>()) {
|
||||
ss.precision(decimalPrecision);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue