mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Removed some useless code
This commit is contained in:
parent
6cfdf68940
commit
86d7734efe
|
@ -107,19 +107,16 @@ static void chat_onKey(ToxWindow* self, int key) {
|
||||||
}
|
}
|
||||||
else if(key == '\n') {
|
else if(key == '\n') {
|
||||||
|
|
||||||
printf("Get times to int");
|
|
||||||
int inthour = timeinfo->tm_hour; //Pretty bad, but it gets the job done
|
int inthour = timeinfo->tm_hour; //Pretty bad, but it gets the job done
|
||||||
int intmin = timeinfo->tm_min;
|
int intmin = timeinfo->tm_min;
|
||||||
char min[2];
|
char min[2];
|
||||||
char hour[2];
|
char hour[2];
|
||||||
printf("Turn to varible");
|
|
||||||
sprintf(hour,"%d",inthour);
|
sprintf(hour,"%d",inthour);
|
||||||
if (intmin < 10) {
|
if (intmin < 10) {
|
||||||
sprintf(min,"0%d",intmin);
|
sprintf(min,"0%d",intmin);
|
||||||
} else {
|
} else {
|
||||||
sprintf(min,"%d",intmin);
|
sprintf(min,"%d",intmin);
|
||||||
}
|
}
|
||||||
printf("Display");
|
|
||||||
wattron(ctx->history, COLOR_PAIR(2));
|
wattron(ctx->history, COLOR_PAIR(2));
|
||||||
wprintw(ctx->history,"%s",hour);
|
wprintw(ctx->history,"%s",hour);
|
||||||
wprintw(ctx->history,":%s ",min);
|
wprintw(ctx->history,":%s ",min);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user