From 07274513e984f0b5544586c74508ccd16e7dcafa Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 13 Jan 2013 17:29:19 +1000 Subject: Remove EFL, since it's been released now. --- .../modules/engines/software_gdi/evas_gdi_buffer.c | 88 ---------------------- 1 file changed, 88 deletions(-) delete mode 100644 libraries/evas/src/modules/engines/software_gdi/evas_gdi_buffer.c (limited to 'libraries/evas/src/modules/engines/software_gdi/evas_gdi_buffer.c') diff --git a/libraries/evas/src/modules/engines/software_gdi/evas_gdi_buffer.c b/libraries/evas/src/modules/engines/software_gdi/evas_gdi_buffer.c deleted file mode 100644 index 66a5abf..0000000 --- a/libraries/evas/src/modules/engines/software_gdi/evas_gdi_buffer.c +++ /dev/null @@ -1,88 +0,0 @@ -#include - -#include "evas_common.h" -#include "evas_engine.h" - -Gdi_Output_Buffer * -evas_software_gdi_output_buffer_new(HDC dc, - BITMAPINFO_GDI *bitmap_info, - int depth, - int width, - int height, - void *data) -{ - Gdi_Output_Buffer *gdiob; - - gdiob = calloc(1, sizeof(Gdi_Output_Buffer)); - if (!gdiob) return NULL; - - if (!data) - { - bitmap_info->bih.biWidth = width; - bitmap_info->bih.biHeight = -height; - bitmap_info->bih.biSizeImage = (depth >> 3) * width * height; - gdiob->bitmap = CreateDIBSection(dc, - (const BITMAPINFO *)bitmap_info, - DIB_RGB_COLORS, - (void **)(&data), - NULL, - 0); - if (!gdiob->bitmap) - { - free(gdiob); - return NULL; - } - } - - gdiob->bitmap_info = bitmap_info; - gdiob->dc = dc; - gdiob->data = data; - gdiob->width = width; - gdiob->height = height; - gdiob->depth = depth; - gdiob->pitch = width * (depth >> 3); -/* gdiob->psize = gdiob->pitch * height; */ - - return gdiob; -} - -void -evas_software_gdi_output_buffer_free(Gdi_Output_Buffer *gdiob) -{ - DeleteObject(gdiob->bitmap); - free(gdiob); -} - -void -evas_software_gdi_output_buffer_paste(Gdi_Output_Buffer *gdiob, - int x, - int y) -{ - HDC dc; - - dc = CreateCompatibleDC(gdiob->dc); - if (!dc) - return; - SelectObject(dc, gdiob->bitmap); - BitBlt(gdiob->dc, - x, y, - gdiob->width, gdiob->height, - dc, - 0, 0, - SRCCOPY); - DeleteDC(dc); -} - -DATA8 * -evas_software_gdi_output_buffer_data(Gdi_Output_Buffer *gdiob, - int *pitch) -{ - if (pitch) *pitch = gdiob->pitch; - return gdiob->data; -} - -int -evas_software_gdi_output_buffer_depth(Gdi_Output_Buffer *gdiob) -{ - return gdiob->depth; -} -- cgit v1.1