This commit is contained in:
Émilie Feral
2020-07-29 09:44:28 +02:00
committed by EmilieNumworks
parent 50031c4836
commit 652d2e6bac
2 changed files with 2 additions and 0 deletions

View File

@@ -195,6 +195,7 @@ Event getPlatformEvent() {
break;
}
#if !EPSILON_SDL_SCREEN_ONLY
// This works but it is selected right after. We should highlight on mouse movement?
if (event.type == SDL_MOUSEBUTTONUP) {
Simulator::Layout::unhighlightKey();
}

View File

@@ -246,6 +246,7 @@ SDL_PixelFormat * sRgbaPixelFormat = SDL_AllocFormat(SDL_PIXELFORMAT_RGBA32);
static constexpr size_t k_maxKeyLayoutSize = 130*130;
static constexpr uint8_t k_blendingRatio = 0x44;
// TODO: use a "native" image decompressor instead of LZ4
void fillRGBABufferWithImage(Uint32 * buffer, const Image * img) {
KDColor pixelBuffer[k_maxKeyLayoutSize];
Ion::decompress(