Skip to content

Commit 37d12cd

Browse files
descenderhartwork
authored andcommitted
* *: Merge from HEAD
* po/*.po: Update LV version.
1 parent c1183ff commit 37d12cd

File tree

13 files changed

+44
-107
lines changed

13 files changed

+44
-107
lines changed

libvisual/ChangeLog

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
2006-03-04 Chong Kai Xiong <[email protected]>
2+
3+
* *: Merge from HEAD
4+
* po/*.po: Update LV version.
5+
6+
2006-03-03 Dennis Smit <[email protected]>
7+
8+
* libvisual/lv_color.c (visual_color_white): Black, White, what is the
9+
difference. Biggest doh ever.
10+
11+
2006-02-25 Dennis Smit <[email protected]>
12+
13+
* libvisual/lv_video.*, libvisual/lv_gl.*: Don't use a callback
14+
system for GL attribs, let the display target work with the lists.
15+
16+
2006-02-19 Chong Kai Xiong <[email protected]>
17+
18+
* configure.ac, Makefile.am, libvisual/Makefile.am,
19+
libvisual.pc.in, po/Makefile.in.in: Allow parallel installation
20+
with LV 0.2.0.
21+
122
2006-02-17 Dennis Smit <[email protected]>
223

324
* libvisual/lv_audio.c (visual_audio_normalise_spectrum): Use the

libvisual/config.h.in

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,6 @@
77
/* GETTEXT package name */
88
#undef GETTEXT_PACKAGE
99

10-
/* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the
11-
CoreFoundation framework. */
12-
#undef HAVE_CFLOCALECOPYCURRENT
13-
14-
/* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in
15-
the CoreFoundation framework. */
16-
#undef HAVE_CFPREFERENCESCOPYAPPVALUE
17-
1810
/* Define if the GNU dcgettext() function is already present or preinstalled.
1911
*/
2012
#undef HAVE_DCGETTEXT

libvisual/libvisual/lv_actor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Authors: Dennis Smit <[email protected]>
66
*
7-
* $Id: lv_actor.c,v 1.39 2006-01-27 20:18:26 synap Exp $
7+
* $Id: lv_actor.c,v 1.39.2.1 2006-03-04 12:32:47 descender Exp $
88
*
99
* This program is free software; you can redistribute it and/or modify
1010
* it under the terms of the GNU Lesser General Public License as

libvisual/libvisual/lv_color.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Authors: Dennis Smit <[email protected]>
66
*
7-
* $Id: lv_color.c,v 1.18 2006-01-22 13:23:37 synap Exp $
7+
* $Id: lv_color.c,v 1.18.2.1 2006-03-04 12:32:47 descender Exp $
88
*
99
* This program is free software; you can redistribute it and/or modify
1010
* it under the terms of the GNU Lesser General Public License as
@@ -303,7 +303,7 @@ VisColor *visual_color_white ()
303303

304304
if (white_initialized == FALSE) {
305305
visual_object_initialize (VISUAL_OBJECT (&white), FALSE, NULL);
306-
visual_color_set (&white, 0, 0, 0);
306+
visual_color_set (&white, 255, 255, 255);
307307

308308
white_initialized = TRUE;
309309
}

libvisual/libvisual/lv_gl.c

Lines changed: 1 addition & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Authors: Dennis Smit <[email protected]>
66
*
7-
* $Id: lv_gl.c,v 1.5 2006-01-27 20:18:26 synap Exp $
7+
* $Id: lv_gl.c,v 1.5.2.1 2006-03-04 12:32:47 descender Exp $
88
*
99
* This program is free software; you can redistribute it and/or modify
1010
* it under the terms of the GNU Lesser General Public License as
@@ -29,59 +29,15 @@
2929

3030
#include "lv_gl.h"
3131

32-
static VisGLCallbacks __lv_gl_callbacks;
33-
3432
/**
3533
* @defgroup VisGL VisGL
3634
* @{
3735
*/
38-
39-
int visual_gl_set_callback_attribute_set (VisGLSetAttributeFunc attribute_set)
40-
{
41-
__lv_gl_callbacks.attribute_set = attribute_set;
42-
43-
return VISUAL_OK;
44-
}
45-
46-
int visual_gl_set_callback_attribute_get (VisGLGetAttributeFunc attribute_get)
47-
{
48-
__lv_gl_callbacks.attribute_get = attribute_get;
49-
50-
return VISUAL_OK;
51-
}
52-
53-
54-
int visual_gl_set_attribute (VisGLAttribute attribute, int value)
55-
{
56-
if (__lv_gl_callbacks.attribute_set == NULL)
57-
return -VISUAL_ERROR_GL_FUNCTION_NOT_SUPPORTED;
58-
59-
__lv_gl_callbacks.attribute_set (attribute, value);
60-
61-
return VISUAL_OK;
62-
}
63-
64-
int visual_gl_get_attribute (VisGLAttribute attribute, int *value)
65-
{
66-
if (__lv_gl_callbacks.attribute_get == NULL)
67-
return -VISUAL_ERROR_GL_FUNCTION_NOT_SUPPORTED;
68-
69-
__lv_gl_callbacks.attribute_get (attribute, value);
70-
71-
return VISUAL_OK;
72-
}
73-
74-
7536
void *visual_gl_get_proc_address (char *procname)
7637
{
7738
return NULL;
7839
}
7940

80-
VisGLCallbacks *visual_gl_get_callbacks ()
81-
{
82-
return &__lv_gl_callbacks;
83-
}
84-
8541
/**
8642
* @}
8743
*/

libvisual/libvisual/lv_gl.h

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Authors: Dennis Smit <[email protected]>
66
*
7-
* $Id: lv_gl.h,v 1.5 2006-01-27 20:18:26 synap Exp $
7+
* $Id: lv_gl.h,v 1.5.2.1 2006-03-04 12:32:47 descender Exp $
88
*
99
* This program is free software; you can redistribute it and/or modify
1010
* it under the terms of the GNU Lesser General Public License as
@@ -56,35 +56,17 @@ typedef enum {
5656
} VisGLAttribute;
5757

5858

59-
typedef struct _VisGLCallbacks VisGLCallbacks;
6059
typedef struct _VisGLAttributeEntry VisGLAttributeEntry;
6160

62-
typedef int (*VisGLSetAttributeFunc)(VisGLAttribute attribute, int value);
63-
typedef int (*VisGLGetAttributeFunc)(VisGLAttribute attribute, int *value);
64-
65-
66-
struct _VisGLCallbacks {
67-
VisGLSetAttributeFunc attribute_set;
68-
VisGLGetAttributeFunc attribute_get;
69-
};
70-
7161
struct _VisGLAttributeEntry {
7262
VisGLAttribute attribute;
7363
int value;
7464
int mutated;
7565
};
7666

7767
/* prototypes */
78-
int visual_gl_set_callback_attribute_set (VisGLSetAttributeFunc attribute_set);
79-
int visual_gl_set_callback_attribute_get (VisGLGetAttributeFunc attribute_get);
80-
81-
int visual_gl_set_attribute (VisGLAttribute attribute, int value);
82-
int visual_gl_get_attribute (VisGLAttribute attribute, int *value);
83-
8468
void *visual_gl_get_proc_address (char *procname);
8569

86-
VisGLCallbacks *visual_gl_get_callbacks (void);
87-
8870
VISUAL_END_DECLS
8971

9072
#endif /* _LV_GL_H */

libvisual/libvisual/lv_log.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Authors: Dennis Smit <[email protected]>
66
*
7-
* $Id: lv_log.h,v 1.19 2006-01-22 13:23:37 synap Exp $
7+
* $Id: lv_log.h,v 1.19.2.1 2006-03-04 12:32:47 descender Exp $
88
*
99
* This program is free software; you can redistribute it and/or modify
1010
* it under the terms of the GNU Lesser General Public License as
@@ -30,6 +30,7 @@
3030
#include <assert.h>
3131

3232
#include <libvisual/lv_defines.h>
33+
#include <libvisual/lvconfig.h>
3334

3435
VISUAL_BEGIN_DECLS
3536

@@ -208,7 +209,7 @@ static void visual_log (VisLogSeverity severity, const char *fmt, ...)
208209
va_list va;
209210
char sever_msg[10];
210211
VisLogVerboseness v;
211-
212+
212213
assert (fmt != NULL);
213214

214215
va_start (va, fmt);

libvisual/libvisual/lv_plugin.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Authors: Dennis Smit <[email protected]>
66
*
7-
* $Id: lv_plugin.c,v 1.80 2006-01-26 15:13:37 synap Exp $
7+
* $Id: lv_plugin.c,v 1.80.2.1 2006-03-04 12:32:47 descender Exp $
88
*
99
* This program is free software; you can redistribute it and/or modify
1010
* it under the terms of the GNU Lesser General Public License as
@@ -717,7 +717,7 @@ VisPluginData *visual_plugin_load (VisPluginRef *ref)
717717
#else
718718
handle = dlopen (ref->file, RTLD_LAZY);
719719
#endif
720-
720+
721721
if (handle == NULL) {
722722
#if defined(VISUAL_OS_WIN32)
723723
visual_log (VISUAL_LOG_CRITICAL, "Cannot load plugin: win32 error code: %d", GetLastError ());
@@ -1045,7 +1045,7 @@ const char *visual_plugin_type_get_type (const char *type)
10451045

10461046
return typestr;
10471047
}
1048-
1048+
10491049
return str;
10501050
}
10511051

libvisual/libvisual/lv_utils.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Authors: Dennis Smit <[email protected]>
66
*
7-
* $Id: lv_utils.c,v 1.3 2006-01-22 13:23:37 synap Exp $
7+
* $Id: lv_utils.c,v 1.3.2.1 2006-03-04 12:32:47 descender Exp $
88
*
99
* This program is free software; you can redistribute it and/or modify
1010
* it under the terms of the GNU Lesser General Public License as
@@ -60,6 +60,9 @@ int visual_utils_is_power_of_2 (int n)
6060

6161
} while (n > 0);
6262

63+
/* Couldn't we use this: */
64+
/* FIXME: (n & (n -1)) == 0) */
65+
6366
return TRUE;
6467
}
6568

libvisual/libvisual/lv_video.c

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Jean-Christophe Hoelt <[email protected]>
99
* Jaak Randmets <[email protected]>
1010
*
11-
* $Id: lv_video.c,v 1.86 2006-02-13 20:54:08 synap Exp $
11+
* $Id: lv_video.c,v 1.86.2.1 2006-03-04 12:32:47 descender Exp $
1212
*
1313
* This program is free software; you can redistribute it and/or modify
1414
* it under the terms of the GNU Lesser General Public License as
@@ -557,22 +557,6 @@ int visual_video_set_attributes (VisVideo *video, int width, int height, int pit
557557
return VISUAL_OK;
558558
}
559559

560-
int visual_video_gl_pump_options (VisVideoAttributeOptions *vidoptions)
561-
{
562-
int i;
563-
564-
visual_log_return_val_if_fail (vidoptions != NULL, -VISUAL_ERROR_VIDEO_ATTRIBUTE_OPTIONS_NULL);
565-
566-
for (i = VISUAL_GL_ATTRIBUTE_NONE; i < VISUAL_GL_ATTRIBUTE_LAST; i++) {
567-
if (vidoptions->gl_attributes[i].mutated == TRUE) {
568-
visual_gl_set_attribute (vidoptions->gl_attributes[i].attribute,
569-
vidoptions->gl_attributes[i].value);
570-
}
571-
}
572-
573-
return VISUAL_OK;
574-
}
575-
576560
int visual_video_get_size (VisVideo *video)
577561
{
578562
visual_log_return_val_if_fail (video != NULL, -VISUAL_ERROR_VIDEO_NULL);

0 commit comments

Comments
 (0)