housekeeping

This commit is contained in:
scawful
2024-07-29 12:42:52 -04:00
parent cbfb39d80b
commit a1bc11b34d
3 changed files with 6 additions and 8 deletions

View File

@@ -22,15 +22,15 @@ namespace app {
*/ */
namespace gfx { namespace gfx {
constexpr int SNES_PIXELFORMAT_2BPP = SDL_DEFINE_PIXELFORMAT( constexpr Uint32 SNES_PIXELFORMAT_2BPP = SDL_DEFINE_PIXELFORMAT(
/*type=*/SDL_PIXELTYPE_INDEX8, /*order=*/0, /*type=*/SDL_PIXELTYPE_INDEX8, /*order=*/0,
/*layouts=*/0, /*bits=*/2, /*bytes=*/1); /*layouts=*/0, /*bits=*/2, /*bytes=*/1);
constexpr int SNES_PIXELFORMAT_4BPP = SDL_DEFINE_PIXELFORMAT( constexpr Uint32 SNES_PIXELFORMAT_4BPP = SDL_DEFINE_PIXELFORMAT(
/*type=*/SDL_PIXELTYPE_INDEX8, /*order=*/0, /*type=*/SDL_PIXELTYPE_INDEX8, /*order=*/0,
/*layouts=*/0, /*bits=*/4, /*bytes=*/1); /*layouts=*/0, /*bits=*/4, /*bytes=*/1);
constexpr int SNES_PIXELFORMAT_8BPP = SDL_DEFINE_PIXELFORMAT( constexpr Uint32 SNES_PIXELFORMAT_8BPP = SDL_DEFINE_PIXELFORMAT(
/*type=*/SDL_PIXELTYPE_INDEX8, /*order=*/0, /*type=*/SDL_PIXELTYPE_INDEX8, /*order=*/0,
/*layouts=*/0, /*bits=*/8, /*bytes=*/1); /*layouts=*/0, /*bits=*/8, /*bytes=*/1);

View File

@@ -16,13 +16,11 @@ void GfxSheetAssetBrowser::Draw(gfx::BitmapManager* bmp_manager) {
Checkbox("Allow Sorting", &AllowSorting); Checkbox("Allow Sorting", &AllowSorting);
SameLine(); SameLine();
Checkbox("Stretch Spacing", &StretchSpacing); Checkbox("Stretch Spacing", &StretchSpacing);
SameLine();
SeparatorText("Selection Behavior");
Checkbox("Allow dragging unselected item", &AllowDragUnselected); Checkbox("Allow dragging unselected item", &AllowDragUnselected);
SameLine(); SameLine();
Checkbox("Allow box-selection", &AllowBoxSelect); Checkbox("Allow box-selection", &AllowBoxSelect);
SameLine();
SeparatorText("Layout");
SliderFloat("Icon Size", &IconSize, 16.0f, 128.0f, "%.0f"); SliderFloat("Icon Size", &IconSize, 16.0f, 128.0f, "%.0f");
SameLine(); SameLine();
SliderInt("Icon Spacing", &IconSpacing, 0, 32); SliderInt("Icon Spacing", &IconSpacing, 0, 32);