зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1277647 - return the correct type from ANativeWindow_setBuffersGeometry; r=snorp
This function returns a boolean, so let's return that, rather than relying on pointer-to-boolean coercion.
This commit is contained in:
Родитель
900260f1fd
Коммит
b61b54f642
|
@ -62,7 +62,7 @@ public:
|
||||||
bool ANativeWindow_setBuffersGeometry(void* aWindow, int32_t aWidth, int32_t aHeight, int32_t aFormat) {
|
bool ANativeWindow_setBuffersGeometry(void* aWindow, int32_t aWidth, int32_t aHeight, int32_t aFormat) {
|
||||||
ALOG("%s: window=%p, width=%d, height=%d, format=%d\n", __PRETTY_FUNCTION__, aWindow, aWidth, aHeight, aFormat);
|
ALOG("%s: window=%p, width=%d, height=%d, format=%d\n", __PRETTY_FUNCTION__, aWindow, aWidth, aHeight, aFormat);
|
||||||
if (!Initialized()) {
|
if (!Initialized()) {
|
||||||
return nullptr;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return fANativeWindow_setBuffersGeometry(aWindow, aWidth, aHeight, (int32_t)aFormat) == 0;
|
return fANativeWindow_setBuffersGeometry(aWindow, aWidth, aHeight, (int32_t)aFormat) == 0;
|
||||||
|
@ -278,4 +278,4 @@ AndroidNativeWindow::UnlockAndPost()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // MOZ_WIDGET_ANDROID
|
#endif // MOZ_WIDGET_ANDROID
|
||||||
|
|
Загрузка…
Ссылка в новой задаче