Skip to content

Commit

Permalink
improve rendering (accuracy, performance, code quality)
Browse files Browse the repository at this point in the history
  • Loading branch information
cboxdoerfer committed Jan 15, 2018
1 parent 5f4784e commit 6b7b5b7
Show file tree
Hide file tree
Showing 7 changed files with 845 additions and 347 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ GTK3_LIBS?=`pkg-config --libs gtk+-3.0`
SQLITE_LIBS?=-lsqlite3

CC?=gcc
CFLAGS+=-Wall -O2 -fPIC -std=c99 -D_GNU_SOURCE
CFLAGS+=-Wall -O2 -g -fPIC -std=c99 -D_GNU_SOURCE
LDFLAGS+=-shared

GTK2_DIR?=gtk2
Expand Down
10 changes: 0 additions & 10 deletions config.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,5 @@ load_config (void)
CONFIG_FG_RMS_ALPHA = deadbeef->conf_get_int (CONFSTR_WF_FG_RMS_ALPHA, 65535);

deadbeef->conf_unlock ();

render =
(RENDER) {
/*foreground*/ { CONFIG_FG_COLOR.red/65535.f,CONFIG_FG_COLOR.green/65535.f,
CONFIG_FG_COLOR.blue/65535.f, CONFIG_FG_ALPHA/65535.f },
/*wave-rms*/ { CONFIG_FG_RMS_COLOR.red/65535.f,CONFIG_FG_RMS_COLOR.green/65535.f,
CONFIG_FG_RMS_COLOR.blue/65535.f, CONFIG_FG_RMS_ALPHA/65535.f },
/*background*/ { CONFIG_BG_COLOR.red/65535.f,CONFIG_BG_COLOR.green/65535.f,
CONFIG_BG_COLOR.blue/65535.f, CONFIG_BG_ALPHA/65535.f },
};
}

5 changes: 1 addition & 4 deletions config.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/

#ifndef CONFIG_HEADER
#define CONFIG_HEADER
#pragma once

#include <sys/types.h>
#include <sys/stat.h>
Expand All @@ -37,7 +36,6 @@
#include <gtk/gtk.h>

#include <deadbeef/deadbeef.h>
#include <deadbeef/gtkui_api.h>
#include "cache.h"

#define CONFSTR_WF_LOG_ENABLED "waveform.log_enabled"
Expand Down Expand Up @@ -106,4 +104,3 @@ save_config (void);
void
load_config (void);

#endif
Loading

0 comments on commit 6b7b5b7

Please sign in to comment.