Skip to content

Commit 4e59536

Browse files
committed
Changed transparant check to alpha for bitmap
1 parent 5392a09 commit 4e59536

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

klib/graphics/bitmap.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ namespace klib::graphics {
189189
template <typename Fb>
190190
void draw(Fb& framebuffer, const klib::vector2i& position, const klib::graphics::color foreground, const klib::graphics::color background) const {
191191
// skip drawing if both colors are transparant
192-
if (foreground.transparant && background.transparant) {
192+
if ((foreground.alpha != 0xff) && (background.alpha != 0xff)) {
193193
return;
194194
}
195195

0 commit comments

Comments
 (0)