]> git.pld-linux.org Git - packages/DFBTerm.git/blame - DFBTerm-update.patch
- LiTE API update (from DFBTerm CVS)
[packages/DFBTerm.git] / DFBTerm-update.patch
CommitLineData
b55a787c
JB
1--- DFBTerm-0.8.0/src/term.c.orig 2005-02-14 22:09:49.000000000 +0100
2+++ DFBTerm-0.8.0/src/term.c 2005-10-23 19:56:33.716629856 +0200
3@@ -153,6 +153,7 @@
4 IDirectFBSurface *surface;
5 IDirectFBEventBuffer *buffer;
6 IDirectFBFont *font;
7+ DFBRectangle win_rect;
8 struct _vtx *vtx;
9 Term *term;
10 char *command = NULL;
11@@ -271,11 +272,12 @@
12 term->height = term->CH * termheight;
13
14 /* Create window */
15- term->lw = lite_new_window (NULL,
16- LITE_CENTER_HORIZONTALLY,
17- LITE_CENTER_VERTICALLY,
18- term->width+2, term->height,
19- DWCAPS_ALPHACHANNEL, "Terminal");
20+ win_rect.x = LITE_CENTER_HORIZONTALLY;
21+ win_rect.y = LITE_CENTER_VERTICALLY;
22+ win_rect.w = term->width+2;
23+ win_rect.h = term->height;
24+ ret = lite_new_window (NULL, &win_rect,
25+ DWCAPS_ALPHACHANNEL, liteDefaultWindowTheme, "Terminal", &term->lw);
26 if (!term->lw) {
27 lite_close();
28 dfb->Release (dfb);
29@@ -792,7 +794,7 @@
30 if (term->modifiers & DIMM_ALT) /* meta? */
31 qual |= 8;
32
33- if (lite_theme_loaded()) {
34+ if (lite_default_window_theme_loaded()) {
35 evt->x -= 5;
36 evt->y -= 23;
37 }
38@@ -917,7 +919,7 @@
39 {
40 struct _vtx *vtx = term->vtx;
41
42- if (lite_theme_loaded()) {
43+ if (lite_default_window_theme_loaded()) {
44 evt->x -= 5;
45 evt->y -= 23;
46 }
This page took 0.043181 seconds and 4 git commands to generate.