We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2257 - Shaped Windows under Mac OS X
Summary: Shaped Windows under Mac OS X
Status: RESOLVED ABANDONED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.1
Hardware: x86 Mac OS X 10.8
: P2 blocker
Assignee: Alex Szpakowski
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-21 04:28 UTC by Jeffrey Carpenter
Modified: 2018-08-06 21:20 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeffrey Carpenter 2013-11-21 04:28:33 UTC
The shaped window test -- test/testshape.c -- from the HG master trunk crashes on me. A bit of debugging shows that it appears to be a pointer released too early: src/video/cocoa/SDL_cocoashape.m at line 95 (initializing a NSBezierPath object). If I change 'autorelease' to 'init', the crash disappears, but I am still left with just a regular window insteaad of a shaped one. 

This same test works for me as expected on the Windows platform. Is there official OS X shaped window support for SDL2 or is the implementation still incomplete?

Thanks, cheers!

P.S. I am running on OS X v10.9 "Mavericks", not v10.8 as I have for the list input box for OS -- I found no label for Mac OS X v10.9!
Comment 1 Sam Lantinga 2013-11-23 10:05:07 UTC
Thanks for the crash fix. I've committed it to source control:
https://hg.libsdl.org/SDL/rev/7e9b97eb8aa3

The window shape code is stalled. The problem is that it works well as-is... unless you draw with OpenGL into the window. Since that's the only way SDL supports drawing into the window, that's kind of problematic.

Any ideas?
Comment 2 Jeffrey Carpenter 2013-12-05 06:27:41 UTC
(In reply to Sam Lantinga from comment #1)
> Thanks for the crash fix. I've committed it to source control:
> https://hg.libsdl.org/SDL/rev/7e9b97eb8aa3
> 
> The window shape code is stalled. The problem is that it works well as-is...
> unless you draw with OpenGL into the window. Since that's the only way SDL
> supports drawing into the window, that's kind of problematic.
> 
> Any ideas?

Sorry, unfortunately I do not.

Thanks!
Comment 3 Sam Lantinga 2017-08-15 04:42:13 UTC
Alex, any ideas?
Comment 4 Ryan C. Gordon 2018-08-06 21:20:24 UTC
Hello, and sorry if you're getting dozens of copies of this message by email.

We are closing out bugs that appear to be abandoned in some form. This can happen for lots of reasons: we couldn't reproduce it, conversation faded out, the bug was noted as fixed in a comment but we forgot to mark it resolved, the report is good but the fix is impractical, we fixed it a long time ago without realizing there was an associated report, etc.

Individually, any of these bugs might have a better resolution (such as WONTFIX or WORKSFORME or INVALID) but we've added a new resolution of ABANDONED to make this easily searchable and make it clear that it's not necessarily unreasonable to revive a given bug report.

So if this bug is still a going concern and you feel it should still be open: please feel free to reopen it! But unless you respond, we'd like to consider these bugs closed, as many of them are several years old and overwhelming our ability to prioritize recent issues.

(please note that hundred of bug reports were sorted through here, so we apologize for any human error. Just reopen the bug in that case!)

Thanks,
--ryan.