[Bug 36499] New: Small .NET based Direct2D example app needs ID2D1Factory::CreateHwndRenderTarget implementation
https://bugs.winehq.org/show_bug.cgi?id=36499 Bug ID: 36499 Summary: Small .NET based Direct2D example app needs ID2D1Factory::CreateHwndRenderTarget implementation Product: Wine Version: 1.7.19 Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs(a)winehq.org Reporter: focht(a)gmx.net Hello folks, since Henri is working on adding Direct2D support to Wine I thought it might be useful to collect (example) apps to target method stubs. One can find many Direct2D examples on MSDN - unfortunately they are only provided in source, to be compiled with Platform/DirectX SDK/Visual Studio. I found some small precompiled Direct2D "tutorial" apps. Example here: http://www.rolandk.de/index.php?option=com_content&view=category&id=15:direc... Prerequisite: 'winetricks -q dotnet20'. The example makes use of 'SlimDX' Framework/library which provides a managed wrapper around Microsoft DirectX. --- snip --- $ WINEDEBUG=+tid,+seh,+loaddll wine ./Articles.Tutorials.Direct2D.exe ... 002a:trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\d2d1.dll" at 0x7dcf0000: builtin 002a:fixme:d2d:d2d_factory_init Ignoring factory type and options. 002a:fixme:d2d:d2d_factory_CreateHwndRenderTarget iface 0x1b3720, desc 0x33e390, hwnd_rt_desc 0x33e380, render_target 0x33e368 stub! .... SlimDX.Direct2D.Direct2DException: E_NOTIMPL: The function called is not supported at this time (-2147467263) at SlimDX.Result.Throw[T](Object dataKey, Object dataValue) at SlimDX.Result.Record[T](Int32 hr, Boolean failed, Object dataKey, Object dataValue) at SlimDX.Result.Record[T](Int32 hr, Object dataKey, Object dataValue) at SlimDX.Direct2D.WindowRenderTarget.Init(Factory factory, RenderTargetProperties renderTargetProperties, WindowRenderTargetProperties windowRenderTargetProperties) at SlimDX.Direct2D.WindowRenderTarget..ctor(Factory factory, WindowRenderTargetProperties windowRenderTargetProperties) at Articles.Tutorials.Direct2D.Chapter1.InitializeGraphics() at Articles.Tutorials.Direct2D.Chapter1.OnHandleCreated(EventArgs e) at System.Windows.Forms.Control.WmCreate(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ContainerControl.WndProc(Message& m) at System.Windows.Forms.UserControl.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ... --- snip --- $ sha1sum Articles.Tutorials.Direct2D.zip 9e29ae58cd2f684c909a0ab714e2097fe497c8c9 Articles.Tutorials.Direct2D.zip $ du -sh Articles.Tutorials.Direct2D.zip 2.0M Articles.Tutorials.Direct2D.zip $ wine --version wine-1.7.19-47-g704d169 Regards -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=36499 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |dotnet, download URL| |http://www.rolandk.de/index | |.php?option=com_content&vie | |w=category&id=15:direct2dwr | |ite -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=36499 Henri Verbeet <hverbeet(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |d2d -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=36499 Jeff D. Hanson <jhansonxi(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jhansonxi(a)gmail.com --- Comment #1 from Jeff D. Hanson <jhansonxi(a)gmail.com> --- I believe SciTE has the same requirement: https://appdb.winehq.org/objectManager.php?sClass=application&iId=16575 fixme:dwrite:dwritetextlayout_GetMetrics (0x20ad08)->(0x32deb0): stub fixme:d2d:d2d_factory_CreateHwndRenderTarget iface 0x1ca4f8, desc 0x32e494, hwnd_rt_desc 0x32e4b0, render_target 0x32e480 stub! wine: Unhandled page fault on read access to 0x00000000 at address 0x478c63 (thread 0009), starting debugger... Native d2d1.dll resolves the problem. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=36499 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|dotnet | Summary|Small .NET based Direct2D |Multiple applications need |example app needs |ID2D1Factory::CreateHwndRen |ID2D1Factory::CreateHwndRen |derTarget implementation |derTarget implementation |(SciTE 3.5.x, Direct2D .NET | |example apps) --- Comment #2 from Anastasius Focht <focht(a)gmx.net> --- Hello folks, revisiting, still present. Also refining summary to collect more apps. Source: https://source.winehq.org/git/wine.git/blob/bdaa571c5d7dd59dd28fd1f25cdad576... --- snip --- 259 static HRESULT STDMETHODCALLTYPE d2d_factory_CreateHwndRenderTarget(ID2D1Factory *iface, 260 const D2D1_RENDER_TARGET_PROPERTIES *desc, const D2D1_HWND_RENDER_TARGET_PROPERTIES *hwnd_rt_desc, 261 ID2D1HwndRenderTarget **render_target) 262 { 263 FIXME("iface %p, desc %p, hwnd_rt_desc %p, render_target %p stub!\n", iface, desc, hwnd_rt_desc, render_target); 264 265 return E_NOTIMPL; 266 } --- snip --- $ wine --version wine-1.7.54-179-ga0d0d0d Regards -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=36499 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |40038 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=36499 --- Comment #3 from Jeff D. Hanson <jhansonxi(a)gmail.com> --- Still present with SciTE 3.6.3 on Wine 1.8 (git). Noticed that it works normally on WinXP which doesn't have d2d1.dll but doesn't work without it on Wine set to WinXP. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=36499 --- Comment #4 from Nikolay Sivov <bunglehead(a)gmail.com> --- If your application works without it, try to set d2d1 to disabled with winecfg. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=36499 --- Comment #5 from Wylda <wylda(a)volny.cz> --- *** Bug 40038 has been marked as a duplicate of this bug. *** -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=36499 Wylda <wylda(a)volny.cz> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wylda(a)volny.cz -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=36499 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |f4cacf774b4dc6a906a395fac1e | |667e06350848c Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #6 from Nikolay Sivov <bunglehead(a)gmail.com> --- Fixed with http://source.winehq.org/git/wine.git/?a=commit;h=f4cacf774b4dc6a906a395fac1.... Please open another report if it's not enough. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=36499 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks|40038 | -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=36499 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #7 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 1.9.21. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=36499 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xj(a)wp.pl --- Comment #8 from Nikolay Sivov <bunglehead(a)gmail.com> --- *** Bug 37579 has been marked as a duplicate of this bug. *** -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=36499 Bruno Jesus <00cpxxx(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |attila.schler(a)atskler.net --- Comment #9 from Bruno Jesus <00cpxxx(a)gmail.com> --- *** Bug 42246 has been marked as a duplicate of this bug. *** -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=36499 --- Comment #10 from Anastasius Focht <focht(a)gmx.net> --- Hello folks, adding stable download links via Internet Archive for documentation. --- 'Direct2D und DirectWrite Examples': https://web.archive.org/web/*/http://www.rolandk.de/index.php My comment date 2014-05-20 -> relevant page snapshot from 2014: https://web.archive.org/web/20141004213520/http://www.rolandk.de/index.php?o... which contains a download link that fortunately got saved another time: https://web.archive.org/web/20160416172306/http://rolandk.de/files/Articles.... --- Molot VST plugin (bug 37579): https://web.archive.org/web/20201227214542/https://www.tokyodawn.net/labs/vl... --- SciTE 3.6.5 (bug 40038): https://web.archive.org/web/20201227215534/https://master.dl.sourceforge.net... Regards -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=36499 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- URL|http://www.rolandk.de/index |https://web.archive.org/web |.php?option=com_content&vie |/20160416172306/http://rola |w=category&id=15:direct2dwr |ndk.de/files/Articles.Tutor |ite |ials.Direct2D.zip -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (2)
-
wine-bugs@winehq.org -
WineHQ Bugzilla