Vadim Zeitlin
0738b901b1
Fix discrepancy between different ways of measuring text extents under Mac.
...
wxGraphicsContext::GetTextExtent() didn't round the returned double result to
int but truncated it instead and so returned different extent than
GetPartialTextExtents() which did round it up.
Moreover, wxGraphicsContext::GetPartialTextExtents() didn't round it up
correctly: it wrongly added 0.5 to the value still stored as double and which
was hence rounded up (correctly, this time) when converted to int in
wxDC::GetPartialTextExtents().
These two errors combined to produce difference of up to 2 pixels between the
last offset returned by wxDC::GetPartialTextExtents() and the total string
extent returned by wxDC::GetTextExtent() which thoroughly confused the code in
wxControlBase::DoEllipsizeSingleLine() (and probably not only there).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-10 00:13:57 +00:00
Stefan Csomor
502113941d
switching to explicit flush mode, otherwise clientdc destruction lead to contention in customrenderers in osx
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62495 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-10-24 19:22:40 +00:00
Paul Cornett
ab451f970c
Remove unused global bitmap, which caused crash on startup with wxUSE_XPM==0.
...
Use new pen style enums
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62234 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-10-03 16:39:24 +00:00
Stefan Csomor
2986eb869c
adding construction from native bitmaps
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62226 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-10-02 19:45:03 +00:00
Stefan Csomor
6bd1764f27
fixing text matrix (dataview custom renderer showed problems) and reordering SaveGState
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62215 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-30 17:50:49 +00:00
Vadim Zeitlin
03647350fc
No changes, just removed hard tabs and trailing white space.
...
This commit is huge but there are no non-white-space changes in it.
Some files containing third-party sources (src/msw/wince/time.cpp,
src/x11/pango*.cpp) were left unchanged.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61724 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-08-21 10:41:26 +00:00
Vadim Zeitlin
9a83f86094
Globally replace _T() with wxT().
...
Standardize on using a single macro across all wxWidgets sources and solve the name clash with Sun CC standard headers (see #10660 ).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-23 20:30:22 +00:00
Vadim Zeitlin
9611b7975f
use WXSIZEOF(x) instead of sizeof(x)/sizeof(x[0]) ( closes #10701 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61296 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-02 22:43:31 +00:00
Stefan Csomor
b4ff8b3e4e
adding iphone code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59924 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-29 20:48:05 +00:00
Stefan Csomor
aa6208d975
conforming to new naming convention of starting all port specific methods with the port prefix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-24 07:56:17 +00:00
Stefan Csomor
de0d209531
fixing warning in osx core and carbon
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59777 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-23 15:24:04 +00:00
Stefan Csomor
f1c40652a0
reworked font handling for osx
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-20 13:56:57 +00:00
Kevin Ollivier
c0b5b33b0d
Missed one symbol used in the compatibility path.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59095 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-22 21:30:30 +00:00
Kevin Ollivier
f72e03b222
Fix for building under 10.4, where the BlendMode constants are not defined.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59094 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-22 21:22:07 +00:00
Robert Roebling
140f202726
Compilo
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58937 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-16 08:09:39 +00:00
Stefan Csomor
bf02a7f976
switching to compositing operators ( fixes #9881 ), adding layers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58917 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-15 16:52:05 +00:00
Stefan Csomor
c0f6cd1924
CGContextFlush is already called in SetNativeContext
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-12 07:16:32 +00:00
Stefan Csomor
f28b6f0668
supporting graphics context on invisible views, icon refs are available under 64 bit cocoa as well, turn drawing on again, fixes #10490
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-10 07:00:03 +00:00
Stefan Csomor
15fc716c57
paint event handling fixes and wxClientDC implementation for osx-cocoa
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 18:03:13 +00:00
Kevin Ollivier
0600cf3ae9
Do a sanity check to make sure GetWindow() has a valid window, and assert if it doesn't. On OS X Cocoa, try to continue on in release mode.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58797 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 02:21:30 +00:00
Stefan Csomor
02fd8b9b61
fixing infinite recursion for rotated text, introduced in cleanup r57915
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58139 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-16 15:31:55 +00:00
Francesco Montorsi
33ef0bdb1f
build fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57918 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-08 19:26:10 +00:00
Francesco Montorsi
94a007ece4
a few more int/wxPolygonFillMode substitutions in wxRegion and wxGraphicsContext code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57915 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-08 16:43:56 +00:00
Francesco Montorsi
7351769afc
fix build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57913 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-08 15:41:43 +00:00
Francesco Montorsi
89efaf2b65
change generic ints to enums in wxDC ( closes #9959 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57907 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-08 14:21:53 +00:00
Vadim Zeitlin
0b7dce5480
fix warnings about hiding virtual wxGraphicsContext::DrawText() overloads by using different names for the implementation functions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56753 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-13 12:16:39 +00:00
Stefan Csomor
021db427c3
adding missing y axis flip
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55559 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-11 18:55:45 +00:00
Stefan Csomor
524c47aa3a
osx new layout
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55419 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-02 16:53:23 +00:00
Stefan Csomor
1011fbebdb
guarding all text methods against unset font
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-02 06:40:21 +00:00
Stefan Csomor
9535b4790b
better guarding when no printing architecture exists
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-31 06:59:10 +00:00
Stefan Csomor
292e5e1f17
OSX renaming round 2
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-30 14:52:41 +00:00
Stefan Csomor
b2680ced12
osx regrouping
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-29 20:04:11 +00:00
Stefan Csomor
1f0c8f31f4
fixing file paths after renaming
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-11 19:30:52 +00:00
Stefan Csomor
489468feaa
renaming
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54119 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-11 16:46:03 +00:00