comparison window/surface.h @ 56:c7bcc0ec2267

* replaced Grp and Text classes by the TextImpl and GrpImpl ones * splitted scn2k.h into smaller header files * moved some definitions from scn2k_*.cc to the header files * moved opcode implementation to scn2k_*impl.cc
author thib
date Thu, 30 Apr 2009 19:05:09 +0000
parents 5ae5533b3a9a
children
comparison
equal deleted inserted replaced
55:f1a27ee7e03c 56:c7bcc0ec2267
26 */ 26 */
27 27
28 #ifndef __SURFACE_H__ 28 #ifndef __SURFACE_H__
29 #define __SURFACE_H__ 29 #define __SURFACE_H__
30 30
31 #include<SDL.h> 31 #include <SDL.h>
32 #include"rect.h" 32 #include "rect.h"
33 33
34 struct Surface : public SDL_Surface { 34 struct Surface : public SDL_Surface {
35 char* mem(const Rect& r) { 35 char* mem(const Rect& r) {
36 return (char*)(pixels) + r.ty * pitch + r.lx * format->BytesPerPixel; 36 return (char*)(pixels) + r.ty * pitch + r.lx * format->BytesPerPixel;
37 } 37 }