Skip to content

Commit

Permalink
chg: Makefile updated to build in any plataform !minor
Browse files Browse the repository at this point in the history
  • Loading branch information
lcgamboa committed May 26, 2024
1 parent 3b841c0 commit 1524251
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/Makefile.static
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ override CXXFLAGS+= -DEXT_BROWSER -flto=auto


LIBS= $(LIBPATH)/picsim/src/libpicsim.a $(LIBPATH)/lxrad/lib/liblxrad.a \
$(LIBPATH)/simavr/simavr/obj-x86_64-linux-gnu/libsimavr.a \
$(LIBPATH)/simavr/simavr/obj-${shell $(CC) -dumpmachine}/libsimavr.a \
$(LIBPATH)/lunasvg/build/liblunasvg.a \
$(LIBPATH)/uCsim_picsimlab/picsimlab/libucsim.a \
-lopenal `wx-config --libs` `wx-config --libs stc` -ldl -lgpsim
Expand Down
30 changes: 17 additions & 13 deletions src/parts/other_jumpers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -527,26 +527,30 @@ void cpart_Jumpers::Process(void) {
const picpin* ppins = SpareParts.GetPinsValues();

for (i = 0; i < 16; i++) {
if (ppins[input_pins[i] - 1].value != ppins[output_pins[i] - 1].value) {
if (jtype & 0x01) {
SpareParts.SetPin(output_pins[i], ppins[input_pins[i] - 1].value);
} else {
SpareParts.WritePin(output_pins[i], ppins[input_pins[i] - 1].value);
if (input_pins[i] && output_pins[i]) {
if (ppins[input_pins[i] - 1].value != ppins[output_pins[i] - 1].value) {
if (jtype & 0x01) {
SpareParts.SetPin(output_pins[i], ppins[input_pins[i] - 1].value);
} else {
SpareParts.WritePin(output_pins[i], ppins[input_pins[i] - 1].value);
}
}
/*
if (ppins[input_pins[i] - 1].avalue != ppins[output_pins[i] - 1].avalue)
{
SpareParts.WritePinA (output_pins[i], ppins[input_pins[i] - 1].avalue);
}
*/
}
/*
if (ppins[input_pins[i] - 1].avalue != ppins[output_pins[i] - 1].avalue)
{
SpareParts.WritePinA (output_pins[i], ppins[input_pins[i] - 1].avalue);
}
*/
}

mcount++;
if (mcount >= JUMPSTEPS_) {
for (i = 0; i < 16; i++) {
if (ppins[output_pins[i] - 1].value)
output_pins_alm[i]++;
if (output_pins[i]) {
if (ppins[output_pins[i] - 1].value)
output_pins_alm[i]++;
}
}
mcount = -1;
}
Expand Down
3 changes: 2 additions & 1 deletion src/picsimlab5.cc
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ void CPWindow5::pmenu2_Properties_EvMenuActive(CControl* control) {
Application->ACreateWindow(Windows[PW_WPROP]);
Windows[PW_WPROP]->HideExclusive();
Windows[PW_WPROP]->DestroyChilds();
Windows[PW_WPROP]->SetTitle(SpareParts.GetPart(PartSelected)->GetName());
Windows[PW_WPROP]->SetTitle(SpareParts.GetPart(PartSelected)->GetName() +
" [id=" + std::to_string(SpareParts.GetPart(PartSelected)->GetId()) + "]");
Windows[PW_WPROP]->SetWidth(370);
Windows[PW_WPROP]->SetX(SpareParts.GetPart(PartSelected)->GetX() + GetX() - offsetx);
Windows[PW_WPROP]->SetY(SpareParts.GetPart(PartSelected)->GetY() + GetY() - offsety);
Expand Down

0 comments on commit 1524251

Please sign in to comment.