Skip to content

Commit

Permalink
Merge pull request #19 from tribal-tec/master
Browse files Browse the repository at this point in the history
Fix deprecation warning
  • Loading branch information
Raphael Dumusc committed May 13, 2015
2 parents eb08399 + 81b6e62 commit 6b145f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/DesktopStreamer/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@ void MainWindow::shareDesktopUpdate()

// take screenshot
const QPixmap desktopPixmap =
QPixmap::grabWindow( QApplication::desktop()->winId(), x_, y_,
width_, height_ );
QApplication::primaryScreen()->grabWindow( 0, x_, y_,
width_, height_ );

if( desktopPixmap.isNull( ))
{
Expand Down

0 comments on commit 6b145f7

Please sign in to comment.