I've noticed stange GetDisplay behavior. Please see code below. This error I get only when I'm tracing from the beginning of entry point.
Entry Point:
Break here and trace->
CreateWindowEx
SetFocus
ShowWindow
UpdateWindow
HAL::DisplayParameters phal_display_params;
phal_display_params.m_width=240;
phal_display_params.m_height=320;
phal_display_params.m_orientation=PHAL::ORIENTATION_NORMAL;
phal_display_params.m_swapEffect=PHAL::SWAP_DISCARD;
phal_display=PHAL::Display::Create(hwnd,phal_display_params);
PHAL::GetKeyList(&phal;_keylist);
SetWindowText(hwnd,...);
phal_backbuffer=phal_display->GetBackBuffer();
phal_backbuffer is not null, but phal_backbuffer.m_pixels is null.
Entry Point:
Break here and trace->
CreateWindowEx
SetFocus
ShowWindow
UpdateWindow
HAL::DisplayParameters phal_display_params;
phal_display_params.m_width=240;
phal_display_params.m_height=320;
phal_display_params.m_orientation=PHAL::ORIENTATION_NORMAL;
phal_display_params.m_swapEffect=PHAL::SWAP_DISCARD;
phal_display=PHAL::Display::Create(hwnd,phal_display_params);
PHAL::GetKeyList(&phal;_keylist);
SetWindowText(hwnd,...);
phal_backbuffer=phal_display->GetBackBuffer();
phal_backbuffer is not null, but phal_backbuffer.m_pixels is null.