Commit a96bf519 authored by twanvl's avatar twanvl

(newline style)

parent bf1f65f8
......@@ -5,66 +5,66 @@
purpose: Allow wxTAB_TRAVERSAL to be disabled for splitter windows
file: src/common/splitter.cpp
line: 90
old:
// allow TABbing from one window to the other
style |= wxTAB_TRAVERSAL;
new:
// allow TABbing from one window to the other
// @@@ 2007-04-13 If I don't ask for TAB_TREVERSAL, I don't want it, thank you very much!
//style |= wxTAB_TRAVERSAL;
old:
// allow TABbing from one window to the other
style |= wxTAB_TRAVERSAL;
new:
// allow TABbing from one window to the other
// @@@ 2007-04-13 If I don't ask for TAB_TREVERSAL, I don't want it, thank you very much!
//style |= wxTAB_TRAVERSAL;
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
purpose: Fix copy/paste of bitmaps into Photopaint/Photoshop
file: src/msw/dib.cpp
line: 522
old:
// memory we need for BITMAPINFO only
DWORD dwLen = bi.biSize + GetNumberOfColours(bm.bmBitsPixel) * sizeof(RGBQUAD);
new:
// memory we need for BITMAPINFO only
purpose: Fix copy/paste of bitmaps into Photopaint/Photoshop
file: src/msw/dib.cpp
line: 522
old:
// memory we need for BITMAPINFO only
DWORD dwLen = bi.biSize + GetNumberOfColours(bm.bmBitsPixel) * sizeof(RGBQUAD);
new:
// memory we need for BITMAPINFO only
DWORD dwLen = bi.biSize + GetNumberOfColours(bm.bmBitsPixel) * sizeof(RGBQUAD);
// @@@ 2006-09-29
// HACK: Photoshop and Photopaint thing they are dealing with BI_BITFIELDS
// so they expect masks, make room for that in the palet section
if (bm.bmBitsPixel == 32) {
dwLen += 3 * sizeof(DWORD);
}
line: 551
old:
// return the total size
}
line: 551
old:
// return the total size
return dwLen + bi.biSizeImage;
new:
// @@@
// @@@
// HACK: make the DIB BI_BITFIELDS compatible for stupid programs that don't understand BI_RGB
if (!wantSizeOnly && bm.bmBitsPixel == 32) {
bi.biClrUsed = 3;
ZeroMemory((char *)pbi + dwLen - 3 * sizeof(DWORD), 3 * sizeof(DWORD));
}
// return the total size
return dwLen + bi.biSizeImage;
// -----------------------------------------------------------------------------
purpose: Draw 'checked' menu items with a border
file: src/msw/ownerdrw.cpp
line: 464
old:
// there should be enough space!
wxASSERT((nBmpWidth <= rc.GetWidth()) && (nBmpHeight <= rc.GetHeight()));
int heightDiff = m_nHeight - nBmpHeight;
dc.Blit(rc.x + (margin - nBmpWidth) / 2,
rc.y + heightDiff / 2,
nBmpWidth, nBmpHeight,
&dcMem, 0, 0, wxCOPY, true /* use mask */);
if ( ( st & wxODSelected ) && !( st & wxODDisabled ) && draw_bitmap_edge )
}
// return the total size
return dwLen + bi.biSizeImage;
// -----------------------------------------------------------------------------
purpose: Draw 'checked' menu items with a border
file: src/msw/ownerdrw.cpp
line: 464
old:
// there should be enough space!
wxASSERT((nBmpWidth <= rc.GetWidth()) && (nBmpHeight <= rc.GetHeight()));
int heightDiff = m_nHeight - nBmpHeight;
dc.Blit(rc.x + (margin - nBmpWidth) / 2,
rc.y + heightDiff / 2,
nBmpWidth, nBmpHeight,
&dcMem, 0, 0, wxCOPY, true /* use mask */);
if ( ( st & wxODSelected ) && !( st & wxODDisabled ) && draw_bitmap_edge )
new:
// there should be enough space!
wxASSERT((nBmpWidth <= rc.GetWidth()) && (nBmpHeight <= rc.GetHeight()));
// there should be enough space!
wxASSERT((nBmpWidth <= rc.GetWidth()) && (nBmpHeight <= rc.GetHeight()));
// @@@ 2006-07-31
// Draw dither behind bitmap
......@@ -93,11 +93,11 @@ new:
// Draw sunken edge on checked item
DrawEdge(hdc, &rectBmp, BDR_SUNKENOUTER, BF_RECT);
}
} else {
} else {
// Draw rectangle around checked item
// background color is interpolated between selection and menu color
HPEN hpen, hPrevPen;
DWORD menu_bg_color = GetSysColor(COLOR_MENU);
HPEN hpen, hPrevPen;
DWORD menu_bg_color = GetSysColor(COLOR_MENU);
DWORD selected_color = GetSysColor(COLOR_MENUHILIGHT);
if ((st & wxODSelected)) {
hbr = CreateSolidBrush(menu_bg_color);
......@@ -115,25 +115,25 @@ new:
DeleteObject(hpen);
DeleteObject(hbr);
}
} // }}}
int heightDiff = m_nHeight - nBmpHeight;
dc.Blit(rc.x + (margin - nBmpWidth) / 2,
rc.y + heightDiff / 2,
nBmpWidth, nBmpHeight,
&dcMem, 0, 0, wxCOPY, true /* use mask */);
} // }}}
int heightDiff = m_nHeight - nBmpHeight;
dc.Blit(rc.x + (margin - nBmpWidth) / 2,
rc.y + heightDiff / 2,
nBmpWidth, nBmpHeight,
&dcMem, 0, 0, wxCOPY, true /* use mask */);
// @@@ 2006-07-31
// Edge for checked already drawn
// -----------------------------------------------------------------------------
purpose: Don't mess with the default GUI font for no reason
file: src/msw/settings.cpp
line: 226
old:
wxNativeFontInfo info;
// Edge for checked already drawn
// -----------------------------------------------------------------------------
purpose: Don't mess with the default GUI font for no reason
file: src/msw/settings.cpp
line: 226
old:
wxNativeFontInfo info;
info.lf = lf;
#ifndef __WXWINCE__
// We want Windows 2000 or later to have new fonts even MS Shell Dlg
......@@ -142,17 +142,17 @@ old:
if(index == DEFAULT_GUI_FONT && wxGetOsVersion(&verMaj) == wxOS_WINDOWS_NT && verMaj >= 5)
wxStrcpy(info.lf.lfFaceName, wxT("MS Shell Dlg 2"));
#endif
// Under MicroWindows we pass the HFONT as well
new:
wxNativeFontInfo info;
info.lf = lf;
//@@@ 2006-11-21: Don't mess with my Default GUI Font!
// Under MicroWindows we pass the HFONT as well
// -----------------------------------------------------------------------------
purpose: Add support for dropdown arrows in wxToolBar
patch: apply http://trac.wxwidgets.org/ticket/8556
should be in 2.10 and HEAD already
// -----------------------------------------------------------------------------
// Under MicroWindows we pass the HFONT as well
new:
wxNativeFontInfo info;
info.lf = lf;
//@@@ 2006-11-21: Don't mess with my Default GUI Font!
// Under MicroWindows we pass the HFONT as well
// -----------------------------------------------------------------------------
purpose: Add support for dropdown arrows in wxToolBar
patch: apply http://trac.wxwidgets.org/ticket/8556
should be in 2.10 and HEAD already
// -----------------------------------------------------------------------------
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment