improve logging facility
we have a log viewer within the program now
This commit is contained in:
parent
4ae13c15e6
commit
fddd05dc1a
33 changed files with 556 additions and 386 deletions
|
|
@ -579,12 +579,12 @@ void FurnaceGUI::drawSampleEdit() {
|
|||
sampleTex=NULL;
|
||||
}
|
||||
if (avail.x>=1 && avail.y>=1) {
|
||||
logD("recreating sample texture.\n");
|
||||
logD("recreating sample texture.");
|
||||
sampleTex=SDL_CreateTexture(sdlRend,SDL_PIXELFORMAT_ABGR8888,SDL_TEXTUREACCESS_STREAMING,avail.x,avail.y);
|
||||
sampleTexW=avail.x;
|
||||
sampleTexH=avail.y;
|
||||
if (sampleTex==NULL) {
|
||||
logE("error while creating sample texture! %s\n",SDL_GetError());
|
||||
logE("error while creating sample texture! %s",SDL_GetError());
|
||||
} else {
|
||||
updateSampleTex=true;
|
||||
}
|
||||
|
|
@ -595,9 +595,9 @@ void FurnaceGUI::drawSampleEdit() {
|
|||
if (updateSampleTex) {
|
||||
unsigned int* data=NULL;
|
||||
int pitch=0;
|
||||
logD("updating sample texture.\n");
|
||||
logD("updating sample texture.");
|
||||
if (SDL_LockTexture(sampleTex,NULL,(void**)&data,&pitch)!=0) {
|
||||
logE("error while locking sample texture! %s\n",SDL_GetError());
|
||||
logE("error while locking sample texture! %s",SDL_GetError());
|
||||
} else {
|
||||
ImU32 bgColor=ImGui::GetColorU32(ImGuiCol_FrameBg);
|
||||
ImU32 bgColorLoop=ImAlphaBlendColors(bgColor,ImGui::GetColorU32(ImGuiCol_FrameBgHovered,0.5));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue