Skip to content

Commit

Permalink
Make JuliaCanvas buffer format ARGB
Browse files Browse the repository at this point in the history
  • Loading branch information
barche committed Jan 1, 2021
1 parent 1e2fb83 commit a36226c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion julia_canvas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ void JuliaCanvas::paint(QPainter *painter)
m_callback(jlcxx::make_julia_array(draw_buffer, iwidth*iheight), iwidth, iheight);

// make QImage
QImage *image = new QImage((uchar*)draw_buffer, width(), height(), QImage::Format_RGB32);
QImage *image = new QImage((uchar*)draw_buffer, width(), height(), QImage::Format_ARGB32);

// paint the image onto the QuickPaintedItem
painter->drawImage(0, 0, *image);
Expand Down

0 comments on commit a36226c

Please sign in to comment.