mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 924444: Fix various integer comparison warnings in QuartzSupport.mm. r=mstange
This commit is contained in:
parent
5cb4c3e1ff
commit
268ba648e8
@ -87,8 +87,8 @@ private:
|
||||
mozilla::RefPtr<MacIOSurface> mIOSurface;
|
||||
uint32_t mFBO;
|
||||
uint32_t mIOTexture;
|
||||
uint32_t mUnsupportedWidth;
|
||||
uint32_t mUnsupportedHeight;
|
||||
int mUnsupportedWidth;
|
||||
int mUnsupportedHeight;
|
||||
AllowOfflineRendererEnum mAllowOfflineRenderer;
|
||||
double mContentsScaleFactor;
|
||||
};
|
||||
|
@ -807,7 +807,8 @@ void nsCARenderer::AttachIOSurface(RefPtr<MacIOSurface> aSurface) {
|
||||
// Rebind the FBO to make it live
|
||||
::glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, mFBO);
|
||||
|
||||
if (mIOSurface->GetWidth() != width || mIOSurface->GetHeight() != height) {
|
||||
if (static_cast<int>(mIOSurface->GetWidth()) != width ||
|
||||
static_cast<int>(mIOSurface->GetHeight()) != height) {
|
||||
width = mIOSurface->GetWidth();
|
||||
height = mIOSurface->GetHeight();
|
||||
SetBounds(width, height);
|
||||
|
Loading…
Reference in New Issue
Block a user