aboutsummaryrefslogtreecommitdiff
path: root/graphics/surface.h
diff options
context:
space:
mode:
authorJohannes Schickel2011-04-17 21:27:34 +0200
committerJohannes Schickel2011-04-17 21:27:34 +0200
commitda734a4af024a72ee155bc25d6e45f994de6b060 (patch)
treec2ca3d8215cc8b38834e1a42e9f788d4fabce32b /graphics/surface.h
parent877004dbdd967d2f57d494b1aaa1cb55aae0fd52 (diff)
downloadscummvm-rg350-da734a4af024a72ee155bc25d6e45f994de6b060.tar.gz
scummvm-rg350-da734a4af024a72ee155bc25d6e45f994de6b060.tar.bz2
scummvm-rg350-da734a4af024a72ee155bc25d6e45f994de6b060.zip
ALL/GRAPHICS: Remove Surface::bytesPerPixel.
Diffstat (limited to 'graphics/surface.h')
-rw-r--r--graphics/surface.h19
1 files changed, 1 insertions, 18 deletions
diff --git a/graphics/surface.h b/graphics/surface.h
index d25ebffcc5..283577ab5e 100644
--- a/graphics/surface.h
+++ b/graphics/surface.h
@@ -67,11 +67,6 @@ struct Surface {
void *pixels;
/**
- * How many bytes a single pixel occupies.
- */
- uint8 bytesPerPixel;
-
- /**
* The pixel format of the surface.
*/
PixelFormat format;
@@ -79,7 +74,7 @@ struct Surface {
/**
* Construct a simple Surface object.
*/
- Surface() : w(0), h(0), pitch(0), pixels(0), bytesPerPixel(0), format() {
+ Surface() : w(0), h(0), pitch(0), pixels(0), format() {
}
/**
@@ -112,18 +107,6 @@ struct Surface {
*
* @param width Width of the surface object.
* @param height Height of the surface object.
- * @param bytePP The number of bytes a single pixel uses.
- */
- void create(uint16 width, uint16 height, uint8 bytesPP);
-
- /**
- * Allocate memory for the pixel data of the surface.
- *
- * Note that you are responsible for calling free yourself.
- * @see free
- *
- * @param width Width of the surface object.
- * @param height Height of the surface object.
* @param format The pixel format the surface should use.
*/
void create(uint16 width, uint16 height, const PixelFormat &format);