"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "common/core_display.cc" between
free42-3.0.1.tar.gz and free42-3.0.2.tar.gz

About: Free42 is a re-implementation of the HP-42S scientific calculator and the HP-82240 printer.

core_display.cc  (free42-3.0.1):core_display.cc  (free42-3.0.2)
skipping to change at line 717 skipping to change at line 717
shell_blitter(display, 17, 0, 0, 131, 16); shell_blitter(display, 17, 0, 0, 131, 16);
} }
void draw_pixel(int x, int y) { void draw_pixel(int x, int y) {
display[y * 17 + (x >> 3)] |= 1 << (x & 7); display[y * 17 + (x >> 3)] |= 1 << (x & 7);
mark_dirty(y, x, y + 1, x + 1); mark_dirty(y, x, y + 1, x + 1);
} }
void draw_pattern(phloat dx, phloat dy, const char *pattern, int pattern_width){ void draw_pattern(phloat dx, phloat dy, const char *pattern, int pattern_width){
int x, y, h, v, hmin, hmax, vmin, vmax; int x, y, h, v, hmin, hmax, vmin, vmax;
if (dx + pattern_width < 1 || dx > 131 || dy + 8 < 1 || dy > 16)
return;
x = dx < 0 ? to_int(-floor(-dx + 0.5)) : to_int(floor(dx + 0.5)); x = dx < 0 ? to_int(-floor(-dx + 0.5)) : to_int(floor(dx + 0.5));
y = dy < 0 ? to_int(-floor(-dy + 0.5)) : to_int(floor(dy + 0.5)); y = dy < 0 ? to_int(-floor(-dy + 0.5)) : to_int(floor(dy + 0.5));
if (x + pattern_width < 1 || x > 131 || y + 8 < 1 || y > 16)
return;
hmin = x < 1 ? 1 - x : 0; hmin = x < 1 ? 1 - x : 0;
hmax = x + pattern_width > 132 ? 132 - x : pattern_width; hmax = x + pattern_width > 132 ? 132 - x : pattern_width;
vmin = y < 1 ? 1 - y : 0; vmin = y < 1 ? 1 - y : 0;
vmax = y + 8 > 17 ? 17 - y : 8; vmax = y + 8 > 17 ? 17 - y : 8;
x--; x--;
y--; y--;
if (flags.f.agraph_control1) { if (flags.f.agraph_control1) {
if (flags.f.agraph_control0) if (flags.f.agraph_control0)
/* dst = dst ^ src */ /* dst = dst ^ src */
for (h = hmin; h < hmax; h++) { for (h = hmin; h < hmax; h++) {
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)