summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@gnome.org>2006-08-21 14:04:28 +0000
committerJonathon Jongsma <jjongsma@gnome.org>2006-08-21 14:04:28 +0000
commit1d9dbaa12411c910eceaa68814bf95cc4cba971d (patch)
treeb7dfb7045341ca66a73fb9bd1f08ed51b05f4a91
parente0fb7084d38d590bd371d935f0ded5d11e67416b (diff)
2006-08-21 Cedric Gustin <cedric.gustin@gmail.com>
* cairomm/win32_surface.cc: Explicitly cast Cairo::Format to cairo_format_t.
-rw-r--r--ChangeLog5
-rw-r--r--cairomm/win32_surface.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index fdd4d77..3ba4f25 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-08-21 Cedric Gustin <cedric.gustin@gmail.com>
+
+ * cairomm/win32_surface.cc: Explicitly cast Cairo::Format to
+ cairo_format_t.
+
2006-08-20 Jonathon Jongsma <jonathon.jongsma@gmail.com>
* Makefile.am: fix up the release announcement template to explain what
diff --git a/cairomm/win32_surface.cc b/cairomm/win32_surface.cc
index cfed17d..e0e3887 100644
--- a/cairomm/win32_surface.cc
+++ b/cairomm/win32_surface.cc
@@ -47,7 +47,7 @@ RefPtr<Win32Surface> Win32Surface::create(HDC hdc)
RefPtr<Win32Surface> Win32Surface::create(Format format, int width, int height)
{
- cairo_surface_t* cobject = cairo_win32_surface_create_with_dib(format, width, height);
+ cairo_surface_t* cobject = cairo_win32_surface_create_with_dib((cairo_format_t)format, width, height);
check_status_and_throw_exception(cairo_surface_status(cobject));
return RefPtr<Win32Surface>(new Win32Surface(cobject, true /* has reference */));
}