mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
Correct x position in EPG grid view
This commit is contained in:
parent
f56219c93c
commit
56014ea736
11
headergrid.c
11
headergrid.c
@ -48,9 +48,9 @@ void cHeaderGrid::drawChannel(const cChannel *channel) {
|
|||||||
|
|
||||||
void cHeaderGrid::drawChannelHorizontal(const cChannel *channel) {
|
void cHeaderGrid::drawChannelHorizontal(const cChannel *channel) {
|
||||||
int logoWidth = geoManager.logoWidth;
|
int logoWidth = geoManager.logoWidth;
|
||||||
int logoX = tvguideConfig.displayChannelName?2:(Width()-logoWidth)/2;
|
int logoX = tvguideConfig.displayChannelName ? 5 : (Width() - logoWidth) / 2;
|
||||||
int textX = 5;
|
int textX = 5;
|
||||||
int textY = (Height() - fontManager.FontChannelHeaderHorizontal->Height())/2;
|
int textY = (Height() - fontManager.FontChannelHeaderHorizontal->Height()) / 2;
|
||||||
bool logoFound = false;
|
bool logoFound = false;
|
||||||
if (!tvguideConfig.hideChannelLogos) {
|
if (!tvguideConfig.hideChannelLogos) {
|
||||||
cImage *logo = imgCache.GetLogo(channel);
|
cImage *logo = imgCache.GetLogo(channel);
|
||||||
@ -64,10 +64,11 @@ void cHeaderGrid::drawChannelHorizontal(const cChannel *channel) {
|
|||||||
int textWidthMax = Width() - 10;
|
int textWidthMax = Width() - 10;
|
||||||
if (!logoFound) {
|
if (!logoFound) {
|
||||||
drawText = true;
|
drawText = true;
|
||||||
} else if (tvguideConfig.displayChannelName) {
|
}
|
||||||
|
if (tvguideConfig.displayChannelName) {
|
||||||
drawText = true;
|
drawText = true;
|
||||||
textX += logoWidth;
|
textX += logoWidth + 5;
|
||||||
textWidthMax -= logoWidth;
|
textWidthMax -= textX;
|
||||||
}
|
}
|
||||||
if (drawText) {
|
if (drawText) {
|
||||||
tColor colorTextBack = (tvguideConfig.style == eStyleFlat)?color:clrTransparent;
|
tColor colorTextBack = (tvguideConfig.style == eStyleFlat)?color:clrTransparent;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user