[Scummvm-git-logs] scummvm master -> f3ab611ee839481e936a2477e1d291a5097ad1c6

lephilousophe noreply at scummvm.org
Sat Sep 2 08:50:17 UTC 2023


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:
f3ab611ee8 GRAPHICS: Remove spurious warning


Commit: f3ab611ee839481e936a2477e1d291a5097ad1c6
    https://github.com/scummvm/scummvm/commit/f3ab611ee839481e936a2477e1d291a5097ad1c6
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2023-09-02T10:49:14+02:00

Commit Message:
GRAPHICS: Remove spurious warning

This partially reverts commit aa9d13f84ab75cc925ce067bf1309d42c0cc2d92.
It looks like a debug leftover more than an actual warning.

Changed paths:
    graphics/surface.h


diff --git a/graphics/surface.h b/graphics/surface.h
index 242dca71657..8d56d2f8316 100644
--- a/graphics/surface.h
+++ b/graphics/surface.h
@@ -25,7 +25,6 @@
 #include "common/scummsys.h"
 #include "common/endian.h"
 #include "common/list.h"
-#include "common/textconsole.h"
 
 namespace Common {
 struct Rect;
@@ -125,7 +124,7 @@ public:
 	 *
 	 * @param newPixels The new pixel data.
 	 */
-	void setPixels(void *newPixels) { if ((unsigned long long)newPixels & 0xf) warning("unaligned pixels!"); pixels = newPixels; }
+	void setPixels(void *newPixels) { pixels = newPixels; }
 
 	/**
 	 * Return a pointer to the pixel at the specified point.




More information about the Scummvm-git-logs mailing list