Hello community,

here is the log from the commit of package lbreakouthd for openSUSE:Factory 
checked in at 2020-08-05 20:27:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lbreakouthd (Old)
 and      /work/SRC/openSUSE:Factory/.lbreakouthd.new.3592 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lbreakouthd"

Wed Aug  5 20:27:27 2020 rev:2 rq:824363 version:1.0.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/lbreakouthd/lbreakouthd.changes  2020-01-20 
22:52:29.219275247 +0100
+++ /work/SRC/openSUSE:Factory/.lbreakouthd.new.3592/lbreakouthd.changes        
2020-08-05 20:27:40.691049971 +0200
@@ -1,0 +2,7 @@
+Mon Aug  3 11:33:00 UTC 2020 - Carsten Ziepke <[email protected]>
+
+- Update to version 1.0.6:
+  - fixed crash with 4k resolution (2019/12/27 MS)
+- Run spec-cleaner
+  
+-------------------------------------------------------------------

Old:
----
  lbreakouthd-1.0.5.tar.gz

New:
----
  lbreakouthd-1.0.6.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ lbreakouthd.spec ++++++
--- /var/tmp/diff_new_pack.b8zkcN/_old  2020-08-05 20:27:42.543050556 +0200
+++ /var/tmp/diff_new_pack.b8zkcN/_new  2020-08-05 20:27:42.547050558 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package lbreakouthd
 #
-# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 # Copyright (c) 2019, Martin Hauke <[email protected]>
 #
 # All modifications and additions to the file contributed by third parties
@@ -18,13 +18,13 @@
 
 
 Name:           lbreakouthd
-Version:        1.0.5
+Version:        1.0.6
 Release:        0
 Summary:        Classic Breakout-Style Game
 License:        GPL-2.0-or-later
 Group:          Amusements/Games/Action/Breakout
 URL:            http://lgames.sourceforge.net/LBreakoutHD/
-Source:         
http://downloads.sourceforge.net/project/lgames/%{name}/%{name}-%{version}.tar.gz
+Source:         
https://downloads.sourceforge.net/project/lgames/%{name}/%{name}-%{version}.tar.gz
 Source1:        
https://sourceforge.net/projects/lgames/files/add-ons/lbreakout2/lbreakout2-levelsets-20160512.tar.gz
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
@@ -48,7 +48,7 @@
 %build
 %configure \
   --localstatedir=%{_localstatedir}/games
-make %{?_smp_mflags}
+%make_build
 
 %install
 %make_install

++++++ lbreakouthd-1.0.5.tar.gz -> lbreakouthd-1.0.6.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lbreakouthd-1.0.5/Changelog 
new/lbreakouthd-1.0.6/Changelog
--- old/lbreakouthd-1.0.5/Changelog     2019-09-02 14:43:37.000000000 +0200
+++ new/lbreakouthd-1.0.6/Changelog     2019-12-27 15:57:14.000000000 +0100
@@ -1,3 +1,6 @@
+1.0.6:
+- fixed crash with 4k resolution (2019/12/27 MS)
+
 1.0.5:
 - added full german translation (2019/09/02 Wuzzy)
 - automatic ball turbo disabled by default (2019/05/13 MS)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lbreakouthd-1.0.5/configure 
new/lbreakouthd-1.0.6/configure
--- old/lbreakouthd-1.0.5/configure     2019-09-02 15:49:52.000000000 +0200
+++ new/lbreakouthd-1.0.6/configure     2019-12-27 15:58:50.000000000 +0100
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for lbreakouthd 1.0.5.
+# Generated by GNU Autoconf 2.69 for lbreakouthd 1.0.6.
 #
 #
 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
@@ -577,8 +577,8 @@
 # Identity of this package.
 PACKAGE_NAME='lbreakouthd'
 PACKAGE_TARNAME='lbreakouthd'
-PACKAGE_VERSION='1.0.5'
-PACKAGE_STRING='lbreakouthd 1.0.5'
+PACKAGE_VERSION='1.0.6'
+PACKAGE_STRING='lbreakouthd 1.0.6'
 PACKAGE_BUGREPORT=''
 PACKAGE_URL=''
 
@@ -1359,7 +1359,7 @@
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures lbreakouthd 1.0.5 to adapt to many kinds of systems.
+\`configure' configures lbreakouthd 1.0.6 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1430,7 +1430,7 @@
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of lbreakouthd 1.0.5:";;
+     short | recursive ) echo "Configuration of lbreakouthd 1.0.6:";;
    esac
   cat <<\_ACEOF
 
@@ -1542,7 +1542,7 @@
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-lbreakouthd configure 1.0.5
+lbreakouthd configure 1.0.6
 generated by GNU Autoconf 2.69
 
 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2228,7 +2228,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by lbreakouthd $as_me 1.0.5, which was
+It was created by lbreakouthd $as_me 1.0.6, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   $ $0 $@
@@ -3099,7 +3099,7 @@
 
 # Define the identity of the package.
  PACKAGE='lbreakouthd'
- VERSION='1.0.5'
+ VERSION='1.0.6'
 
 
 cat >>confdefs.h <<_ACEOF
@@ -12649,7 +12649,7 @@
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by lbreakouthd $as_me 1.0.5, which was
+This file was extended by lbreakouthd $as_me 1.0.6, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -12715,7 +12715,7 @@
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; 
s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-lbreakouthd config.status 1.0.5
+lbreakouthd config.status 1.0.6
 configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lbreakouthd-1.0.5/configure.ac 
new/lbreakouthd-1.0.6/configure.ac
--- old/lbreakouthd-1.0.5/configure.ac  2019-09-02 15:49:47.000000000 +0200
+++ new/lbreakouthd-1.0.6/configure.ac  2019-12-27 15:58:38.000000000 +0100
@@ -2,7 +2,7 @@
 # Process this file with autoconf to produce a configure script.
 
 AC_PREREQ([2.69])
-AC_INIT(lbreakouthd, 1.0.5)
+AC_INIT(lbreakouthd, 1.0.6)
 AC_CONFIG_SRCDIR([src/main.cpp])
 AC_CONFIG_HEADERS([config.h])
 AM_INIT_AUTOMAKE
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lbreakouthd-1.0.5/po/de.po 
new/lbreakouthd-1.0.6/po/de.po
--- old/lbreakouthd-1.0.5/po/de.po      2019-09-02 15:47:42.000000000 +0200
+++ new/lbreakouthd-1.0.6/po/de.po      2019-12-27 15:58:59.000000000 +0100
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: lbreakouthd 0.1\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-09-02 15:34+0200\n"
+"POT-Creation-Date: 2019-12-27 15:58+0100\n"
 "PO-Revision-Date: 2019-06-26 10:11+0200\n"
 "Last-Translator: Wuzzy <[email protected]>\n"
 "Language-Team: \n"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lbreakouthd-1.0.5/po/lbreakouthd.pot 
new/lbreakouthd-1.0.6/po/lbreakouthd.pot
--- old/lbreakouthd-1.0.5/po/lbreakouthd.pot    2019-09-02 15:34:25.000000000 
+0200
+++ new/lbreakouthd-1.0.6/po/lbreakouthd.pot    2019-12-27 15:58:59.000000000 
+0100
@@ -6,9 +6,9 @@
 #, fuzzy
 msgid ""
 msgstr ""
-"Project-Id-Version: lbreakouthd 1.0.5\n"
+"Project-Id-Version: lbreakouthd 1.0.6\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-09-02 15:34+0200\n"
+"POT-Creation-Date: 2019-12-27 15:58+0100\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <[email protected]>\n"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lbreakouthd-1.0.5/src/main.cpp 
new/lbreakouthd-1.0.6/src/main.cpp
--- old/lbreakouthd-1.0.5/src/main.cpp  2019-05-11 17:05:37.000000000 +0200
+++ new/lbreakouthd-1.0.6/src/main.cpp  2019-09-02 16:07:22.000000000 +0200
@@ -35,7 +35,7 @@
 #endif
 
        printf("%s %s\n", PACKAGE_NAME, PACKAGE_VERSION);
-       printf("Copyright 2018 Michael Speck\n");
+       printf("Copyright 2018-2019 Michael Speck\n");
        printf("Published under GNU GPL\n");
        printf("---\n");
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lbreakouthd-1.0.5/src/sdl.cpp 
new/lbreakouthd-1.0.6/src/sdl.cpp
--- old/lbreakouthd-1.0.5/src/sdl.cpp   2019-03-07 14:07:05.000000000 +0100
+++ new/lbreakouthd-1.0.6/src/sdl.cpp   2019-12-27 15:53:04.000000000 +0100
@@ -71,6 +71,8 @@
 
 int Image::create(int w, int h)
 {
+       _logdebug(1,"Creating new texture of size %dx%d\n",w,h);
+
        if (tex) {
                SDL_DestroyTexture(tex);
                tex = NULL;
@@ -104,6 +106,8 @@
 
 int Image::load(const string& fname)
 {
+       _logdebug(1,"Loading texture %s\n",fname.c_str());
+
        if (tex) {
                SDL_DestroyTexture(tex);
                tex = NULL;
@@ -127,6 +131,8 @@
 }
 int Image::load(SDL_Surface *s)
 {
+       _logdebug(1,"Loading texture from surface %dx%d\n",s->w,s->h);
+
        if (tex) {
                SDL_DestroyTexture(tex);
                tex = NULL;
@@ -142,6 +148,8 @@
 }
 int Image::load(Image *s, int x, int y, int w, int h)
 {
+       _logdebug(1,"Loading texture from surface %dx%d\n",s->w,s->h);
+
        if (tex) {
                SDL_DestroyTexture(tex);
                tex = NULL;
@@ -210,6 +218,8 @@
 
 void Image::scale(int nw, int nh)
 {
+       _logdebug(1,"Scaling texture of size %dx%d to %dx%d\n",w,h,nw,nh);
+
        if (tex == NULL)
                return;
        if (nw == w && nh == h)
@@ -238,6 +248,9 @@
 /** Create shadow image by clearing all r,g,b to 0 and cutting alpha in half. 
*/
 int Image::createShadow(Image &img)
 {
+       _logdebug(1,"Creating shadow of size %dx%d\n",
+                               img.getWidth(),img.getHeight());
+
        /* duplicate first */
        create(img.getWidth(),img.getHeight());
        SDL_Texture *oldTarget = SDL_GetRenderTarget(mrc);
@@ -245,7 +258,12 @@
        img.copy(0,0);
 
        /* change and apply */
-       Uint32 pixels[w*h];
+       Uint32 *pixels = (Uint32*)calloc(w*h,sizeof(Uint32));
+       if (!pixels) {
+               _logerr("Cannot allocate pixel buffer of size %dx%d\n",w,h);
+               SDL_SetRenderTarget(mrc, oldTarget);
+               return 0;
+       }
        int pitch = w*sizeof(Uint32);
        Uint8 r,g,b,a;
        Uint32 pft = 0;
@@ -253,6 +271,8 @@
        SDL_PixelFormat* pf = SDL_AllocFormat(pft);
        if (SDL_RenderReadPixels(mrc, NULL, pft, pixels, pitch) < 0) {
                _logsdlerr();
+               free(pixels);
+               SDL_SetRenderTarget(mrc, oldTarget);
                return 0;
        }
        for (int i = 0; i < w * h; i++) {
@@ -262,6 +282,7 @@
        SDL_UpdateTexture(tex, NULL, pixels, pitch);
        SDL_FreeFormat(pf);
        SDL_SetRenderTarget(mrc, oldTarget);
+       free(pixels);
 
        return 1;
 }


Reply via email to