~ubuntu-branches/debian/wheezy/mame/wheezy

« back to all changes in this revision

Viewing changes to src/emu/video/resnet.c

  • Committer: Bazaar Package Importer
  • Author(s): Jordi Mallach, Emmanuel Kasper, Félix Arreola Rodríguez, Jordi Mallach
  • Date: 2011-05-11 21:06:50 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110511210650-jizvh8a6x117y9hr
Tags: 0.142-1
[ Emmanuel Kasper ]
* New upstream release
* Set NOWERROR=1 to allow compiling with gcc-4.6
* Remove fix_powerpc_build.patch, as upstream has taken it in this release
* Add gnome-video-arcade front end as a suggested package

[ Félix Arreola Rodríguez ]
* Add kfreebsd-build.patch to quilt series, to fix build on kfreebsd

[ Jordi Mallach ]
* Remove unneeded and bogus addition of --with-quilt to the dh invocation.
* Add Cesare Falco (long time Ubuntu maintainer) to Uploaders, and wrap
  them into multiple lines.

Show diffs side-by-side

added added

removed removed

Lines of Context:
564
564
                        cut = 0.0;
565
565
                        break;
566
566
                case RES_NET_AMP_DARLINGTON:
567
 
                        minout = 0.9;
 
567
                        minout = 0.7;
568
568
                        cut = 0.0;
569
569
                        break;
570
570
                case RES_NET_AMP_EMITTER:
685
685
                        v = vcc - v;
686
686
                        v = MAX(0, v-0.7);
687
687
                        v = MIN(v, vcc - 2 * 0.7);
 
688
                        v = v / (vcc-1.4);
 
689
                        v = v * vcc;
688
690
                        break;
689
691
                case RES_NET_MONITOR_ELECTROHOME_G07:
690
692
                        /* Nothing */
691
693
                        break;
692
694
        }
693
695
 
694
 
        return (int) (v *255 / vcc + 0.4);
 
696
        return (int) (v * 255 / vcc + 0.4);
695
697
}
696
698
 
697
 
rgb_t *compute_res_net_all(running_machine *machine, const UINT8 *prom, const res_net_decode_info *rdi, const res_net_info *di)
 
699
rgb_t *compute_res_net_all(running_machine &machine, const UINT8 *prom, const res_net_decode_info *rdi, const res_net_info *di)
698
700
{
699
701
        UINT8 r,g,b;
700
702
        int i,j,k;