/*#*
*#* $Log$
+ *#* Revision 1.3 2006/01/26 00:36:48 bernie
+ *#* Const correctness for some new functions.
+ *#*
*#* Revision 1.2 2006/01/24 21:55:43 aleph
*#* gfx_blit_P(): use RASTER_SIZE() to calculate raster size
*#*
* \param dst Bitmap where the operation writes
*
*/
-void gfx_blit(Bitmap *dst, Rect *rect, Bitmap *src, coord_t srcx, coord_t srcy)
+void gfx_blit(Bitmap *dst, const Rect *rect, const Bitmap *src, coord_t srcx, coord_t srcy)
{
coord_t dxmin, dymin, dxmax, dymax;
coord_t dx, dy, sx, sy;
/*#*
*#* $Log$
+ *#* Revision 1.7 2006/01/26 00:36:48 bernie
+ *#* Const correctness for some new functions.
+ *#*
*#* Revision 1.6 2006/01/23 23:13:04 bernie
*#* RECT_WIDTH(), RECT_HEIGHT(), RASTER_SIZE(): New macros.
*#*
/* Function prototypes */
extern void gfx_bitmapInit (Bitmap *bm, uint8_t *raster, coord_t w, coord_t h);
extern void gfx_bitmapClear(Bitmap *bm);
-extern void gfx_blit (Bitmap *dst, Rect *rect, Bitmap *src, coord_t srcx, coord_t srcy);
+extern void gfx_blit (Bitmap *dst, const Rect *rect, const Bitmap *src, coord_t srcx, coord_t srcy);
extern void gfx_line (Bitmap *bm, coord_t x1, coord_t y1, coord_t x2, coord_t y2);
extern void gfx_rectDraw (Bitmap *bm, coord_t x1, coord_t y1, coord_t x2, coord_t y2);
extern void gfx_rectFillC (Bitmap *bm, coord_t x1, coord_t y1, coord_t x2, coord_t y2, uint8_t color);
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/01/26 00:36:48 bernie
+ *#* Const correctness for some new functions.
+ *#*
*#* Revision 1.1 2006/01/23 23:14:29 bernie
*#* Implement simple, but impressive windowing system.
*#*
* \see win_move()
* \see win_resize()
*/
-void win_setGeometry(Window *w, Rect *new_geom)
+void win_setGeometry(Window *w, const Rect *new_geom)
{
// requires C99?
// memcpy(&w->geom, new_geom, sizeof(w->geom));
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/01/26 00:36:48 bernie
+ *#* Const correctness for some new functions.
+ *#*
*#* Revision 1.1 2006/01/23 23:14:29 bernie
*#* Implement simple, but impressive windowing system.
*#*
void win_open(Window *w, Window *parent);
void win_close(Window *w);
void win_raise(Window *w);
-void win_setGeometry(Window *w, Rect *new_geom);
+void win_setGeometry(Window *w, const Rect *new_geom);
void win_move(Window *w, coord_t left, coord_t top);
void win_resize(Window *w, coord_t width, coord_t height);
void win_create(Window *w, Bitmap *bm);