[Scummvm-git-logs] scummvm master -> 2e6de7ee3f791075866dccb2ccc43657a95f6ac0
criezy
criezy at scummvm.org
Sun Jul 26 22:55:31 UTC 2020
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
2e6de7ee3f BACKENDS: Replace use of bzero()
Commit: 2e6de7ee3f791075866dccb2ccc43657a95f6ac0
https://github.com/scummvm/scummvm/commit/2e6de7ee3f791075866dccb2ccc43657a95f6ac0
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2020-07-26T23:55:28+01:00
Commit Message:
BACKENDS: Replace use of bzero()
Changed paths:
backends/platform/ios7/ios7_osys_video.mm
backends/platform/iphone/osys_video.mm
backends/platform/psp/default_display_client.cpp
diff --git a/backends/platform/ios7/ios7_osys_video.mm b/backends/platform/ios7/ios7_osys_video.mm
index e77fa8675b..8a7eefa454 100644
--- a/backends/platform/ios7/ios7_osys_video.mm
+++ b/backends/platform/ios7/ios7_osys_video.mm
@@ -408,7 +408,7 @@ void OSystem_iOS7::hideOverlay() {
void OSystem_iOS7::clearOverlay() {
//printf("clearOverlay()\n");
- bzero(_videoContext->overlayTexture.getPixels(), _videoContext->overlayTexture.h * _videoContext->overlayTexture.pitch);
+ memset(_videoContext->overlayTexture.getPixels(), 0, _videoContext->overlayTexture.h * _videoContext->overlayTexture.pitch);
dirtyFullOverlayScreen();
}
diff --git a/backends/platform/iphone/osys_video.mm b/backends/platform/iphone/osys_video.mm
index 49811bfc0a..07fc93ce8d 100644
--- a/backends/platform/iphone/osys_video.mm
+++ b/backends/platform/iphone/osys_video.mm
@@ -324,7 +324,7 @@ void OSystem_IPHONE::hideOverlay() {
void OSystem_IPHONE::clearOverlay() {
//printf("clearOverlay()\n");
- bzero(_videoContext->overlayTexture.getPixels(), _videoContext->overlayTexture.h * _videoContext->overlayTexture.pitch);
+ memset(_videoContext->overlayTexture.getPixels(), 0, _videoContext->overlayTexture.h * _videoContext->overlayTexture.pitch);
dirtyFullOverlayScreen();
}
diff --git a/backends/platform/psp/default_display_client.cpp b/backends/platform/psp/default_display_client.cpp
index cc6c17d7ec..904b4c788c 100644
--- a/backends/platform/psp/default_display_client.cpp
+++ b/backends/platform/psp/default_display_client.cpp
@@ -176,7 +176,7 @@ void Screen::setScummvmPixelFormat(const Graphics::PixelFormat *format) {
PSP_DEBUG_PRINT("format[%p], _buffer[%p], _palette[%p]\n", format, &_buffer, &_palette);
if (!format) {
- bzero(&_pixelFormat, sizeof(_pixelFormat));
+ memset(&_pixelFormat, 0, sizeof(_pixelFormat));
_pixelFormat.bytesPerPixel = 1; // default
} else {
_pixelFormat = *format;
More information about the Scummvm-git-logs
mailing list