Skip to content

Commit

Permalink
Fix welcome panel thumbnail clipping
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyschoen committed Jan 26, 2025
1 parent edfb429 commit 7ff6b32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Libraries/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ cmake_minimum_required(VERSION 3.15)
# ------------------------------------------------------------------------------#
project(libpd VERSION 1.0.0 LANGUAGES C CXX)

set(MESSAGE_QUIET ON)
message(STATUS "Configuring fftw3")
add_subdirectory(fftw3)
set(MESSAGE_QUIET OFF)

if(MSVC)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
Expand Down
2 changes: 2 additions & 0 deletions Source/Components/WelcomePanel.h
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,8 @@ class WelcomePanel final : public Component
auto const lB = bounds.toFloat().expanded(0.5f);
// Draw background even for images incase there is a transparent PNG
nvgDrawRoundedRect(nvg, lB.getX(), lB.getY(), lB.getWidth(), lB.getHeight(), convertColour(findColour(PlugDataColour::panelForegroundColourId)), convertColour(findColour(PlugDataColour::toolbarOutlineColourId)), Corners::largeCornerRadius);

nvgRoundedScissor(nvg,lB.getX(), lB.getY(), lB.getWidth(), lB.getHeight(), Corners::largeCornerRadius);
if (thumbnailImageData.isValid()) {
// Render the thumbnail image file that is in the root dir of the pd patch
auto const sB = bounds.toFloat().reduced(0.2f);
Expand Down

0 comments on commit 7ff6b32

Please sign in to comment.