void Screen::update() { BMI bmi; getBMI(&bmi, 0); fillPixelFormat(&bmi); fillScreenRect(); }
bool WindowsScreenGrabber::applyNewPixelFormat() { BMI bmi; if (!getBMI(&bmi)) { return false; } PixelFormat pixelFormat; bool result = fillPixelFormat(&pixelFormat, &bmi); m_workFrameBuffer.setEmptyPixelFmt(&pixelFormat); return result; }
bool WindowsScreenGrabber::getPixelFormatChanged() { BMI bmi; if (!getBMI(&bmi)) { return false; } PixelFormat currentPF; PixelFormat frameBufferPF = m_workFrameBuffer.getPixelFormat(); fillPixelFormat(¤tPF, &bmi); if (!frameBufferPF.isEqualTo(¤tPF)) { return true; } return false; }