dolphin/Source/Core
Lioncash c85e0a2586 FramebufferManagerBase: Return a std::pair from GetTargetSize
Keeps associated data together. It also eliminates the possibility of out
parameters not being initialized properly. For example, consider the
following example:

-- some FramebufferManager implementation --

void FBMgrImpl::GetTargetSize(u32* width, u32* height) override
{
  // Do nothing
}

-- somewhere else where the function is used --

u32 width, height;
framebuffer_manager_instance->GetTargetSize(&width, &height);

if (texture_width != width) <-- Uninitialized variable usage
{
  ...
}

It makes it much more obvious to spot any initialization issues, because
it requires something to be returned, as opposed to allowing an
implementation to just not do anything.
2017-02-03 15:27:53 -05:00
..
AudioCommon cmake: Change endif(.*) to endif() 2017-01-25 15:07:32 +01:00
Common Jit64: Enable branch following. 2017-01-28 02:48:56 +01:00
Core JitArm64: Initial implementation of the BLR optimization. 2017-02-02 09:06:34 +01:00
DiscIO Merge pull request #4746 from JosJuice/volumedirectory-sort-case-insensitive 2017-01-27 18:23:14 +13:00
DolphinQt2 OpenAL: Move Windows binaries to lib folder and fix CMake detection 2017-02-03 04:54:54 +01:00
DolphinWX cmake: Copy resources next to the DolphinWX binary on Windows 2017-02-03 04:54:54 +01:00
InputCommon Merge pull request #4726 from ligfx/addingwindowsheaders 2017-01-24 13:47:36 +13:00
UICommon Fix missing includes 2016-10-07 23:46:41 +02:00
VideoBackends FramebufferManagerBase: Return a std::pair from GetTargetSize 2017-02-03 15:27:53 -05:00
VideoCommon FramebufferManagerBase: Return a std::pair from GetTargetSize 2017-02-03 15:27:53 -05:00
CMakeLists.txt [UI] Remove DolphinQt 2016-01-05 19:42:02 -06:00