[Bug 44052] New: Temple+ does not run due to missing D2D device and device context and multiple API stubs
https://bugs.winehq.org/show_bug.cgi?id=44052 Bug ID: 44052 Summary: Temple+ does not run due to missing D2D device and device context and multiple API stubs Product: Wine Version: 2.20 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs(a)winehq.org Reporter: lucianposton(a)gmail.com Distribution: --- Temple+ requires: - ID2D1Factory1 - ID2D1Device - ID2D1DeviceContext - ID2D1Bitmap1 - GetRedirectionCapabilities https://bugs.winehq.org/show_bug.cgi?id=42307 - SetIncrementalTabStop stub that returns success HRESULT - IDWriteFontCollection font fallback logic when requested font is not in collection - (P|V)SGetShader returns invalid output values causing segfault -- 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=44052 --- Comment #1 from Lucian Poston <lucianposton(a)gmail.com> --- Created attachment 59729 --> https://bugs.winehq.org/attachment.cgi?id=59729 0001-d2d1-ID2D1Factory1-test.patch -- 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=44052 --- Comment #2 from Lucian Poston <lucianposton(a)gmail.com> --- Created attachment 59730 --> https://bugs.winehq.org/attachment.cgi?id=59730 0002-d2d1-Add-d2d1_1.idl.patch -- 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=44052 --- Comment #3 from Lucian Poston <lucianposton(a)gmail.com> --- Created attachment 59731 --> https://bugs.winehq.org/attachment.cgi?id=59731 0003-d2d1-Stub-ID2D1Factory1.patch -- 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=44052 --- Comment #4 from Lucian Poston <lucianposton(a)gmail.com> --- Created attachment 59732 --> https://bugs.winehq.org/attachment.cgi?id=59732 0004-d2d1-Stub-ID2D1Device.patch -- 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=44052 --- Comment #5 from Lucian Poston <lucianposton(a)gmail.com> --- Created attachment 59733 --> https://bugs.winehq.org/attachment.cgi?id=59733 0005-d2d1-Stub-ID2D1DeviceContext.patch -- 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=44052 --- Comment #6 from Lucian Poston <lucianposton(a)gmail.com> --- Created attachment 59734 --> https://bugs.winehq.org/attachment.cgi?id=59734 0006-d2d1-Stub-ID2D1Bitmap1.patch -- 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=44052 --- Comment #7 from Lucian Poston <lucianposton(a)gmail.com> --- Created attachment 59735 --> https://bugs.winehq.org/attachment.cgi?id=59735 0007-d2d1-Partially-implement-ID2D1Device.patch -- 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=44052 --- Comment #8 from Lucian Poston <lucianposton(a)gmail.com> --- Created attachment 59736 --> https://bugs.winehq.org/attachment.cgi?id=59736 0008-d2d1-Partially-implement-ID2D1DeviceContext.patch -- 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=44052 --- Comment #9 from Lucian Poston <lucianposton(a)gmail.com> --- Created attachment 59737 --> https://bugs.winehq.org/attachment.cgi?id=59737 0009-d2d1-Partially-implement-ID2D1Bitmap1.patch -- 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=44052 --- Comment #10 from Lucian Poston <lucianposton(a)gmail.com> --- Created attachment 59738 --> https://bugs.winehq.org/attachment.cgi?id=59738 0100-dwrite-test-font-collection-fallback-logic.patch -- 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=44052 --- Comment #11 from Lucian Poston <lucianposton(a)gmail.com> --- Created attachment 59739 --> https://bugs.winehq.org/attachment.cgi?id=59739 0101-dwrite-Fix-font-fallback.patch -- 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=44052 --- Comment #12 from Lucian Poston <lucianposton(a)gmail.com> --- Created attachment 59740 --> https://bugs.winehq.org/attachment.cgi?id=59740 0200-shell32-Return-stub-for-GetRedirectionCapabilities.patch -- 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=44052 --- Comment #13 from Lucian Poston <lucianposton(a)gmail.com> --- Created attachment 59741 --> https://bugs.winehq.org/attachment.cgi?id=59741 0300-dwrite-Stub-SetIncrementalTabStop.patch -- 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=44052 --- Comment #14 from Lucian Poston <lucianposton(a)gmail.com> --- Created attachment 59742 --> https://bugs.winehq.org/attachment.cgi?id=59742 0400-d3d11-Return-valid-values-for-shader-class-instances.patch -- 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=44052 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch -- 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=44052 Fabian Maurer <dark.shadow4(a)web.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4(a)web.de --- Comment #15 from Fabian Maurer <dark.shadow4(a)web.de> --- Do the attached patches solve the issue? If they're clean enough, you probably should send them to wine-devel for review. :) -- 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=44052 --- Comment #16 from Nikolay Sivov <bunglehead(a)gmail.com> --- D2D part was already submitted. -- 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=44052 --- Comment #17 from Lucian Poston <lucianposton(a)gmail.com> --- (In reply to Fabian Maurer from comment #15)
Do the attached patches solve the issue? If they're clean enough, you probably should send them to wine-devel for review. :)
Workin on it -- 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=44052 Lucian Poston <lucianposton(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #59740|0 |1 is obsolete| | --- Comment #18 from Lucian Poston <lucianposton(a)gmail.com> --- Comment on attachment 59740 --> https://bugs.winehq.org/attachment.cgi?id=59740 0200-shell32-Return-stub-for-GetRedirectionCapabilities.patch 0200-shell32-Return-stub-for-GetRedirectionCapabilities.patch is now obsolete for wine version 2.22. It was added in commit https://source.winehq.org/git/wine.git/commit/349064216a606c9c16be05da71ab59... -- 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=44052 --- Comment #19 from Lucian Poston <lucianposton(a)gmail.com> --- wine staging 2.21 broke the configuration app for Temple+. It's a wpf app. The main game still works with the attached patches though. -- 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=44052 --- Comment #20 from Lucian Poston <lucianposton(a)gmail.com> --- Created attachment 59798 --> https://bugs.winehq.org/attachment.cgi?id=59798 error output for config tool in version 2.21 staging -- 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=44052 Louis Lenders <xerox.xerox2000x(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xerox.xerox2000x(a)gmail.com --- Comment #21 from Louis Lenders <xerox.xerox2000x(a)gmail.com> --- (In reply to Lucian Poston from comment #19)
wine staging 2.21 broke the configuration app for Temple+. It's a wpf app.
The main game still works with the attached patches though.
I think wine >2.21 is broken too. Could you test if the wpf app works in newest wine-version? I tested simple wpf app and it didn`t run in newest wine as well. I will open a bugreport. -- 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=44052 --- Comment #22 from Louis Lenders <xerox.xerox2000x(a)gmail.com> --- (In reply to Lucian Poston from comment #19)
wine staging 2.21 broke the configuration app for Temple+. It's a wpf app.
The main game still works with the attached patches though.
Hi Lucian, could you test if the wpf config tool is fixed by https://www.winehq.org/pipermail/wine-cvs/2017-November/123997.html then we know it`s the same issue (just upgrade to current git should be 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=44052 --- Comment #23 from Lucian Poston <lucianposton(a)gmail.com> --- (In reply to Louis Lenders from comment #22)
could you test if the wpf config tool is fixed by https://www.winehq.org/pipermail/wine-cvs/2017-November/123997.html then we know it`s the same issue
Yes, this fixed it. -- 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=44052 Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |leslie_alistair(a)hotmail.com -- 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=44052 Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |STAGED Ever confirmed|0 |1 Staged patchset| |https://github.com/wine-sta | |ging/wine-staging/tree/mast | |er/patches/d2d1-ID2D1Factor | |y1 --- Comment #24 from Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> --- You will also need. https://github.com/wine-staging/wine-staging/tree/master/patches/dwrite-Font... https://github.com/wine-staging/wine-staging/tree/master/patches/d3d11-shade... -- 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=44052 tokktokk <fdsfgs(a)krutt.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fdsfgs(a)krutt.org -- 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=44052 Zhenya <Zenitur(a)yandex.ru> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Zenitur(a)yandex.ru --- Comment #25 from Zhenya <Zenitur(a)yandex.ru> --- The staging patches are making build error on openSUSE 11.4 with the compiler GCC 4.5. With GCC 4.8 it builds fine. gcc -m64 -c -o tooltips.o tooltips.c -I. -I../../include -D__WINESRC__ -D_COMCTL32_ -D_REENTRANT -fPIC -Wall \ -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers \ -Wstrict-prototypes -Wtype-limits -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -DLDAP_DEPRECATED=1 -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 In file included from ../../include/dwrite_1.h:94:0, from ../../include/dwrite_2.h:110, from d2d1_private.h:32, from brush.c:22: ../../include/dwrite.h:614:3: error: redefinition of typedef 'DWRITE_GLYPH_RUN_DESCRIPTION' ../../include/d2d1_1.h:349:45: note: previous declaration of 'DWRITE_GLYPH_RUN_DESCRIPTION' was here gcc -m64 -c -o str.o str.c -I. -I../../include -D__WINESRC__ -D_CRYPT32_ -D_REENTRANT -fPIC -Wall -pipe \ -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers \ -Wstrict-prototypes -Wtype-limits -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -DLDAP_DEPRECATED=1 -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 make[1]: *** [brush.o] Error 1 -- 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=44052 --- Comment #26 from Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> --- Created attachment 61555 --> https://bugs.winehq.org/attachment.cgi?id=61555 Correct compile error Can you please try the attached patch? -- 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=44052 --- Comment #27 from Zhenya <Zenitur(a)yandex.ru> --- Alistair Leslie-Hughes, it doesn't fixed the problem. https://pastebin.com/J44H28gj -- 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=44052 Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #61555|0 |1 is obsolete| | --- Comment #28 from Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> --- Created attachment 61558 --> https://bugs.winehq.org/attachment.cgi?id=61558 Try 2 Compiler error -- 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=44052 --- Comment #29 from Zhenya <Zenitur(a)yandex.ru> --- Partially fixed. Now the error in tests: https://pastebin.com/QEBan3iV -- 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=44052 --- Comment #30 from Zhenya <Zenitur(a)yandex.ru> --- Edit: not in tests. In bitmap.c -- 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=44052 Nathan <version2013(a)protonmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |version2013(a)protonmail.com --- Comment #31 from Nathan <version2013(a)protonmail.com> --- Created attachment 61637 --> https://bugs.winehq.org/attachment.cgi?id=61637 compile error Compiling Wine-3.10 with gcc (GCC) 4.3.4 I am receiving a similar compile error. -- 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=44052 --- Comment #32 from Zhenya <Zenitur(a)yandex.ru> --- I'd upload an VirtualBox HDD image with openSUSE 11.4 installed. If you want to debug, just download it, unpack: xz -d Opensuse_11.4.vdi.xz And start VirtualBox with the image! Open GNOME Terminal, type: cd /usr/src/packages/SPECS rpmbuild -ba wine.spec -- 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=44052 --- Comment #33 from Zhenya <Zenitur(a)yandex.ru> --- A link in the cloud: https://yadi.sk/d/AxDRFpFy3YSJJE -- 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=44052 --- Comment #34 from Lucian Poston <lucianposton(a)pm.me> --- The Status should no longer be staged. The staged patches for ID2D1Factory1 were incorrectly rebased around 3.10, breaking the functionality. Also, newer versions of the Temple+ game introduced some changes to font handling that cause the game to fail during startup. The maintainer hasn't had time to review the most recent patches sent to wine-devel@ for the last couple months, but hopefully they find time to review the sent patches. For now, the patches to fix the recent font issues (handling empty strings properly) are available at https://github.com/lucianposton/wine/pull/4 (easier to push to a git repo than manually add them to this bug tracker). I haven't tested them in several weeks, so ping me if they need to be updated to work with the current wine version. -- 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=44052 --- Comment #35 from Zhenya <Zenitur(a)yandex.ru> --- Now Wine 3.13 is successfully building with GCC 4.5. -- 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=44052 Zebediah Figura <z.figura12(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12(a)gmail.com --- Comment #36 from Zebediah Figura <z.figura12(a)gmail.com> --- Apologies, but 31cbe190f7caa0cd9089fba8ca77179fef9dfb66 took a completely different approach to implementing the device context, and so I was not able to rebase the remaining patches, but had to drop them instead. -- 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=44052 --- Comment #37 from Nikolay Sivov <bunglehead(a)gmail.com> --- I'm working on updating internals to use device context so we can move forward with this. -- 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=44052 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |focht(a)gmx.net Summary|Temple+ does not run due to |Multiple applications and |missing D2D device and |games fail to run due to |device context and multiple |missing D2D device and |API stubs |device context and multiple | |API stubs (Temple+, | |DJKaty.com 'Simple2D' | |examples) Keywords| |download Component|-unknown |d2d URL| |http://files.djkaty.com/sof | |tware/Simple2D/Simple2DSetu | |p-1.13.exe --- Comment #38 from Anastasius Focht <focht(a)gmx.net> --- Hello folks, another set of apps/examples requiring this: http://files.djkaty.com/software/Simple2D/ Adding this as download link, it comes with source and prebuilt examples. Every example apps crashes the same way. --- snip --- $ wd /home/focht/.wine/drive_c/Program Files (x86)/DJKaty.com/Simple2D/examples $ file *.exe AnimationAndGlyphMetricsDemo.exe: PE32 executable (GUI) Intel 80386, for MS Windows AnimationChainDemo.exe: PE32 executable (GUI) Intel 80386, for MS Windows AsyncHTTPDemo.exe: PE32 executable (GUI) Intel 80386, for MS Windows BitmapBrushDemo.exe: PE32 executable (GUI) Intel 80386, for MS Windows BitmapDemo.exe: PE32 executable (GUI) Intel 80386, for MS Windows BoundingBoxDemo.exe: PE32 executable (GUI) Intel 80386, for MS Windows CollisionDemo1.exe: PE32 executable (GUI) Intel 80386, for MS Windows CollisionDemo2.exe: PE32 executable (GUI) Intel 80386, for MS Windows CollisionDemo2-Optimized.exe: PE32 executable (GUI) Intel 80386, for MS Windows CollisionDemo3.exe: PE32 executable (GUI) Intel 80386, for MS Windows GamepadCallbackDemo.exe: PE32 executable (GUI) Intel 80386, for MS Windows GamepadMappingDemo.exe: PE32 executable (GUI) Intel 80386, for MS Windows GamepadTextDemo.exe: PE32 executable (console) Intel 80386, for MS Windows GamepadWinMsgDemo.exe: PE32 executable (GUI) Intel 80386, for MS Windows LinearGradientDemo.exe: PE32 executable (GUI) Intel 80386, for MS Windows LinearMovementDemo.exe: PE32 executable (GUI) Intel 80386, for MS Windows MSDN-Direct2D-Demo.exe: PE32 executable (GUI) Intel 80386, for MS Windows PathGeometryDemo.exe: PE32 executable (GUI) Intel 80386, for MS Windows SceneGraphDemo.exe: PE32 executable (GUI) Intel 80386, for MS Windows Simple3DBoxDemo.exe: PE32 executable (GUI) Intel 80386, for MS Windows Simple3DBoxSceneDemo.exe: PE32 executable (GUI) Intel 80386, for MS Windows Simple3DInitDemo.exe: PE32 executable (GUI) Intel 80386, for MS Windows SkinnedDialogDemo.exe: PE32 executable (GUI) Intel 80386, for MS Windows SliderDemo.exe: PE32 executable (GUI) Intel 80386, for MS Windows SwingingRopeDemo.exe: PE32 executable (GUI) Intel 80386, for MS Windows TextInputDemo.exe: PE32 executable (GUI) Intel 80386, for MS Windows $ wine ./SliderDemo.exe ... 0009:fixme:d2d:d2d_device_CreateDeviceContext iface 0x17a298, options 0, context 0x33fc44 stub! wine: Unhandled page fault on read access to 0x00000000 at address 0x40cbb6 (thread 0009), starting debugger... --- snip --- https://source.winehq.org/git/wine.git/blob/HEAD:/dlls/d2d1/device.c#l3679 --- snip --- 3679 static HRESULT WINAPI d2d_device_CreateDeviceContext(ID2D1Device *iface, D2D1_DEVICE_CONTEXT_OPTIONS options, 3680 ID2D1DeviceContext **context) 3681 { 3682 FIXME("iface %p, options %#x, context %p stub!\n", iface, options, context); 3683 3684 return E_NOTIMPL; 3685 } --- snip --- Typical app code: --- snip --- // Create a render target and device-specific resources HRESULT Simple2D::CreateDeviceResources() { // ================================================================================= // Direct2D 1.1 version // ================================================================================= // Window-size-dependent resources SafeRelease(&Direct2DBackBuffer); SafeRelease(&Screen); // Create 2D device context (replaces ID2D1RenderTarget sub-classes) Direct2DDevice->CreateDeviceContext(D2D1_DEVICE_CONTEXT_OPTIONS_NONE, &Screen); // Get the back buffer as an IDXGISurface (Direct2D doesn't accept an ID3D11Texture2D directly as a render target) IDXGISurface *dxgiBackBuffer; DXGISwapChain->GetBuffer(0, IID_PPV_ARGS(&dxgiBackBuffer)); // Get screen DPI FLOAT dpiX, dpiY; Direct2D->GetDesktopDpi(&dpiX, &dpiY); // Create a Direct2D surface (bitmap) linked to the Direct3D texture back buffer via the DXGI back buffer D2D1_BITMAP_PROPERTIES1 bitmapProperties = D2D1::BitmapProperties1(D2D1_BITMAP_OPTIONS_TARGET | D2D1_BITMAP_OPTIONS_CANNOT_DRAW, D2D1::PixelFormat(DXGI_FORMAT_B8G8R8A8_UNORM, D2D1_ALPHA_MODE_IGNORE), dpiX, dpiY); Screen->CreateBitmapFromDxgiSurface(dxgiBackBuffer, &bitmapProperties, &Direct2DBackBuffer); // Set surface as render target in Direct2D device context Screen->SetTarget(Direct2DBackBuffer); // Direct3D-specific initialization if (Enable3D) HRSilentReturnOnFail(CreateDirect3DResources()); // Clean up SafeRelease(&dxgiBackBuffer); // ================================================================================= // End of Direct2D 1.1 version // ================================================================================= // Use render target to create resources if (!SetupResources()) HRReturnOnFail( E_FAIL, "Could not set up the application resources"); return S_OK; } --- snip --- Please avoid these meta-bugs in future but focus on one functionality/interface per ticket. It really makes collecting dupes hard because apps require different sets of functionalities/APIs and it also messes up bisecting of regressions later. $ sha1sum Simple2DSetup-1.13.exe 269c002fb9ea11c2abd8958fc3cc4294af1b45d9 Simple2DSetup-1.13.exe $ du -sh Simple2DSetup-1.13.exe 11M Simple2DSetup-1.13.exe $ wine --version wine-3.14-161-g70fbfa2cb8 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=44052 --- Comment #39 from Nikolay Sivov <bunglehead(a)gmail.com> --- Created attachment 62146 --> https://bugs.winehq.org/attachment.cgi?id=62146 patch Attaching what I got so far, it still needs some work to fix derived targets. If anyone has time to test with actual application, please do. -- 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=44052 --- Comment #40 from Louis Lenders <xerox.xerox2000x(a)gmail.com> --- The new paint.net installer (4.1.*) also suffers from this bug and bails out: 003a:trace:text:DrawTextExW L"PaintDotNet.ComponentModel.InterfaceNotSupportedException: 'PaintDotNet.Direct2D1.IDeviceContext' is not a supported interface\r\n at PaintDotNet.ComponentModel.ObjectRefExtensions.CastOrTransferRef[T](IObjectRef objectRef) in D:\\src\\pdn\\src\\Base\\ComponentModel\\ObjectRefExtensions.cs:line Tested after winetricks472 with Staging-3.15 sha1sum ~/Downloads/paint.net.4.1.install.exe b2b886c97532eb4c5eabf7e2fd888d61f4a9ae78 /home/louis/Downloads/paint.net.4.1.install.exe With the patch from Nicolay (comment 39) bails out at 0036:trace:text:DrawTextExW L"System.NotImplementedException: d:\\src\\pdn\\src\\systemlayer.native\\direct2d1\\d2dfactory1.cpp (91) : hr = m_pFactory1->CreateDrawingStateBlock( drawingStateDescription.HasValue ? &NativeConversions::ToNative(drawingStateDescription.Value) : 0, spTextRenderingParams, &spDrawingStateBlock);\r\n a"..., -1, [(0,0)-(304,949)] 00000050 -- 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=44052 --- Comment #41 from Nikolay Sivov <bunglehead(a)gmail.com> --- (In reply to Louis Lenders from comment #40)
0036:trace:text:DrawTextExW L"System.NotImplementedException: d:\\src\\pdn\\src\\systemlayer.native\\direct2d1\\d2dfactory1.cpp (91) : hr = m_pFactory1->CreateDrawingStateBlock( drawingStateDescription.HasValue ? &NativeConversions::ToNative(drawingStateDescription.Value) : 0, spTextRenderingParams, &spDrawingStateBlock);\r\n a"..., -1, [(0,0)-(304,949)] 00000050
This one looks easy, but will have to wait until main part is merged. Could you please open a separate report for CreateDrawingStateBlock()? -- 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=44052 Louis Lenders <xerox.xerox2000x(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |45823 -- 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=44052 --- Comment #42 from Louis Lenders <xerox.xerox2000x(a)gmail.com> --- (In reply to Nikolay Sivov from comment #41)
Could you please open a separate report for CreateDrawingStateBlock()?
Hi Nikolay, done: https://bugs.winehq.org/show_bug.cgi?id=45823 -- 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=44052 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #59742|0 |1 is obsolete| | -- 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=44052 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #59729|0 |1 is obsolete| | -- 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=44052 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #59730|0 |1 is obsolete| | -- 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=44052 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #59732|0 |1 is obsolete| | -- 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=44052 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #59734|0 |1 is obsolete| | -- 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=44052 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #59737|0 |1 is obsolete| | -- 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=44052 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #59741|0 |1 is obsolete| | -- 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=44052 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #59735|0 |1 is obsolete| | -- 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=44052 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #59731|0 |1 is obsolete| | -- 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=44052 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #59733|0 |1 is obsolete| | -- 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=44052 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |45708 -- 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=44052 --- Comment #43 from Nikolay Sivov <bunglehead(a)gmail.com> --- Everything for D2D mentioned in comment 1 is in Wine now. Remaining dwrite fixed, if necessary, should be reported separately. -- 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=44052 luca.finizio.mgbx(a)hotmail.it changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |luca.finizio.mgbx(a)hotmail.i | |t -- 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=44052 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |d227553f572a3bfb469eb232a7e | |a13096dda0ba9 Status|STAGED |RESOLVED Resolution|--- |FIXED --- Comment #44 from Nikolay Sivov <bunglehead(a)gmail.com> --- I'm going to mark this fixed, d227553f572a3bfb469eb232a7ea13096dda0ba9. Remaining issues should be reported separately. -- 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=44052 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #45 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 3.19. -- 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=44052 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- URL|http://files.djkaty.com/sof |https://web.archive.org/web |tware/Simple2D/Simple2DSetu |/20201227155621if_/http://f |p-1.13.exe |iles.djkaty.com/software/Si | |mple2D/Simple2DSetup-1.13.e | |xe -- 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