mirror of https://github.com/fltk/fltk
Removed commented-out debugging statements
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7643 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
da2954b1d6
commit
e6935ce29c
|
@ -143,7 +143,6 @@ void fl_copy_offscreen(int x,int y,int w,int h,HBITMAP bitmap,int srcx,int srcy)
|
|||
DeleteDC(new_gc);
|
||||
}
|
||||
|
||||
//#include <FL/fl_ask.H>
|
||||
void fl_copy_offscreen_with_alpha(int x,int y,int w,int h,HBITMAP bitmap,int srcx,int srcy) {
|
||||
HDC new_gc = CreateCompatibleDC(fl_gc);
|
||||
int save = SaveDC(new_gc);
|
||||
|
@ -152,10 +151,8 @@ void fl_copy_offscreen_with_alpha(int x,int y,int w,int h,HBITMAP bitmap,int src
|
|||
// first try to alpha blend
|
||||
// if to printer, always try alpha_blend
|
||||
int to_display = Fl_Surface_Device::surface()->type() == Fl_Display_Device::device_type; // true iff display output
|
||||
//fl_alert("to_display=%d ",to_display);
|
||||
if ( (to_display && fl_can_do_alpha_blending()) || Fl_Surface_Device::surface()->type() == Fl_Printer::device_type) {
|
||||
alpha_ok = fl_alpha_blend(fl_gc, x, y, w, h, new_gc, srcx, srcy, w, h, blendfunc);
|
||||
//fl_alert("alpha_ok=%d",alpha_ok);
|
||||
}
|
||||
// if that failed (it shouldn't), still copy the bitmap over, but now alpha is 1
|
||||
if (!alpha_ok) {
|
||||
|
|
Loading…
Reference in New Issue