summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/render/drawgdi.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Got rid of global_alloc/global_free. Vas Crabb2020-10-031-9/+7
| | | | | | | | | | | | | | | | | | | | | | | | | The global_alloc/global_free functions have outlived their usefulness. They don't allow consistently overriding the default memory allocation behaviour because they aren't used consistently, and we don't have standard library allocator wrappers for them that we'd need to use them consistently with all the standard library containers we're using. If you need to change the default allocator behaviour, you can override the new/delete operators, and there are ways to get more fine-grained control that way. We're already doing that to pre-fill memory in debug builds. Code was already starting to depend on global_alloc/global_free wrapping new/delete. For example some parts of the code (including the UI and Windows debugger) was putting the result of global_alloc in a std::unique_ptr wrappers without custom deleters, and the SPU sound device was assuming it could use global_free to release memory allocated with operator new. There was also code misunderstanding the behaviour of global_alloc, for example the GROM port cartridge code was checking for nullptr when a failure will actually throw std::bad_alloc. As well as substituting new/delete, I've made several things use smart pointers to reduce the chance of leaks, and fixed a couple of leaks, too.
* Let's try to solve the quit-on-minimize problem (nw) yz70s2019-06-171-0/+2
|
* fix windows compile (nw) Miodrag Milanovic2017-02-111-0/+1
|
* Change window handle storage to template instead of void* (nw) (#1725) Brad Hughes2016-11-171-2/+2
| | | | * Change window handle storage to template instead of void* (nw)
* NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-221-2/+2
| | | | | Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8 also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
* INC -> HXX makes editors and code analyzers see it as C++ (nw) Miodrag Milanovic2016-05-011-1/+1
|
* Revert "Temp revert of Brad changes (nw)" Miodrag Milanovic2016-04-251-10/+16
| | | | This reverts commit 5e831f6506ee06f8c30cb113551ee0fec53804db.
* Temp revert of Brad changes (nw) Miodrag Milanovic2016-04-251-16/+10
|
* Refactor OSD window. Brad Hughes2016-04-211-10/+16
| | | | | | | | | | Unified renderer in osd_window as std::unique_ptr Made windows all std::shared_ptr<window_type> Made window lists std::list<std::shared_ptr<window_type>> Updated OSD SDL worker_param to not use malloc (not compatible with smart pointers) Made renderer pointer to window a weak reference. May not be available during destruction of the window.
* Standardize platform window pointer storage in osd_window. Brad Hughes2016-04-181-2/+2
| | | | Also encapsulate show/hide capture/release cursor functionality.
* Implement integer scaling in core renderer [Calamity] Antonio Giner2016-03-151-1/+1
|
* Fix some compile errors, not sure if all(nw) therealmogminer@gmail.com2016-02-211-1/+1
|
* First take on render API reorg, nw therealmogminer@gmail.com2016-02-211-118/+30
|
* fixing some more override (nw) Miodrag Milanovic2015-12-061-7/+7
|
* Rename *.c -> *.cpp in our source (nw) Miodrag Milanovic2015-11-081-0/+183